Switch to rsync backup
Hello,
CentOS 6, WHM v70.0.43 release tier.
Currently I use "Compressed Backup Type" with remote FTP server as destination.
Sometimes the following error messages comes up:
Unable to send "/backup/2018-05-23/accounts/user.tar.gz" to destination "1.2.3.4"
Unable to send "/backup/2018-05-23/accounts/.master.meta" to destination "1.2.3.4"
Already searched forum for some solution, tried to increase timeouts an other things.
Backup log (/usr/local/cpanel/logs/cpbackup/logname.log) doesn't contain any error
Last line is [2018-05-23 12:42:51 +0200] info [backup] Final state is Backup::Success (0)
Because of that I want to try rsync backup to the same remote server where FTP server is installed.
I have several questions about backup settings:
1. Is it safe to switch from "Compressed Backup Type" to "Incremental Backup Type"?
Simply disable FTP destination, enable and validate new rsync destination with the same path on remote host?
2. We already have the following structure. Wouldn't that be a problem? rsync will overwrite (and delete old) directories and files?
/home/backup/
daily
2018-05-14
2018-05-15
2018-05-16
2018-05-17
2018-05-18
2018-05-19
2018-05-20
2018-05-21
2018-05-22
/home/backup/monthly
2018-04-15/ 2018-05-15/
/home/backup/weekly/
2018-05-16/ 2018-05-23/
-
Hello @iddqd_x, . Is it safe to switch from "Compressed Backup Type" to "Incremental Backup Type"? Simply disable FTP destination, enable and validate new rsync destination with the same path on remote host?
Yes, this is an acceptable action.. We already have the following structure. Wouldn't that be a problem? rsync will overwrite (and delete old) directories and files?
The existing backup directories should not prevent the transfer of new backups to the remote destination. However, you can manually remove the older directories stemming from the previous FTP destination type once you've confirmed new backups are successfully generated and transported through the Rsync destination type.Sometimes the following error messages comes up: Unable to send "/backup/2018-05-23/accounts/user.tar.gz" to destination "1.2.3.4" Unable to send "/backup/2018-05-23/accounts/.master.meta" to destination "1.2.3.4"
While this may no longer matter since you are removing the FTP destination, note the log file to check when this happens is /usr/local/cpanel/logs/cpbackup_transporter.log. Thank you.0 -
Thanks for reply Michael! Seems everything is clear. I know there's command for manual backup /usr/local/cpanel/bin/backup --force Is it possible to run specific backup type manually? I mean if I have both types enabled (FTP and rsync) can I run rsync backup type with some additional command line key? 0 -
I know there's command for manual backup /usr/local/cpanel/bin/backup --force Is it possible to run specific backup type manually? I mean if I have both types enabled (FTP and rsync) can I run rsync backup type with some additional command line key?
Hello, It's not possible to do that. You'd have to manually disable one of the backup destinations using WHM >> Backup Configuration before forcing the backup generation, and then enable it again after the backup process completes. Thank you.0 -
I didn't find how to mark topic as [solved] Thanks for help. 0 -
Hello, You're very welcome. I've marked this thread as solved. 0
Please sign in to leave a comment.
Comments
5 comments