How to backup additional system folders
I would like to make cpanel backup additional files, in specific, gitlab's config and repo files.
I found this
System Backups - Documentation - cPanel Documentation
But I don't understand, I should go to
and just create empty folders of the folders I'd like to backup? IE. create
Or how's the best way I could backup those files, thanks!
/var/cpanel/backups/extrasand just create empty folders of the folders I'd like to backup? IE. create
/var/cpanel/backups/extras/etc/gitlabOr how's the best way I could backup those files, thanks!
-
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 -
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 thing0
Please sign in to leave a comment.
Comments
2 comments