Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Switch to rsync backup

Discussion in 'Data Protection' started by iddqd_x, May 23, 2018.

Tags:
  1. iddqd_x

    iddqd_x Member

    Joined:
    Feb 6, 2015
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    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/
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @iddqd_x,

    Yes, this is an acceptable action.

    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.

    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. iddqd_x

    iddqd_x Member

    Joined:
    Feb 6, 2015
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    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?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. iddqd_x

    iddqd_x Member

    Joined:
    Feb 6, 2015
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I didn't find how to mark topic as [solved]

    Thanks for help.
     
    cPanelMichael likes this.
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You're very welcome. I've marked this thread as solved.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice