Skip to main content

How to backup additional system folders

Comments

2 comments

  • cPanelMichael
    Hello, The name of the configuration file within the /var/cpanel/backups/extras/ directory is irrelevant. For example, I created the following file: /var/cpanel/backups/extras/123 Here's the contents of this file:
    # cat /var/cpanel/backups/extras/123 /etc/gitlab/
    Upon the next backup generation, this lead to the successful inclusion of the entire /etc/gitlab/ directory as a compressed file within the /backup/$date/system/dir/ directory. If you want to define specific files instead of the entire directory, the /var/cpanel/backups/extras/123 file would look like this:
    # cat /var/cpanel/backups/extras/123 /etc/gitlab/path/to/file.name /etc/gitlab/path/to/file2.name /etc/gitlab/path/to/file3.name
    Thank you.
    0
  • jceja
    Thank you very much, just to be sure, this is what I did:
    [/var/cpanel/backups/extras]# cat gitlab /var/opt/gitlab/ /etc/gitlab/
    I'll check it out when the backup job does it's thing
    0

Please sign in to leave a comment.