How to download incremental backups

Augusto Will

Active Member
Sep 9, 2011
43
6
58
cPanel Access Level
Root Administrator
How can I download incremental backups - the first one and subsequent backups individualy and correctly keeping permissions, symlinks, ownerships etc by compressing to a tar or rsync uncompressed to a linux machine? In a way that i can upload to a new server in case of hdd crash or a server disaster.
 
Last edited:

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

If you want to download it in a compressed manner, it is better if you set the backup to compressed instead of incremental.

Guide to Standardized Hooks - Script Hooks - Software Development Kit - cPanel Documentation

You can create a hook and create a script in that section to sync the backup to the different location.

However, there is another way for this.
Configure the FTP backup on your server and keep the option "keep copy of backup locally" selected. This way, it will sync a copy to the remote server, and keep a backup copy locally too..
 

Augusto Will

Active Member
Sep 9, 2011
43
6
58
cPanel Access Level
Root Administrator
Yes, but i need to download the incremental backup: in a way that can be restored if a need to upload that backup to another server.

I need to download the first backup(of incremental backup) and after download only the incremental ones to my linux machine. How can I download the incremental backups in a way that I can restore in case of hdd failure or restore in a new cPanel server?

I need to download preserving symlinks, permissions etc.
What the best way to do that manually, is by rsync the content to my linux in my desktop or compressing the incremental backups to a file to keep the symlinks, hardlinks, permissions, etc... and download them?

I need to keep incremental backups because in other way, the cpu usage is too high and the time they take, and too much space to keep all this huge compressed diary backups in the server or space needed to store all this diary backups. If i can download the incremental backups, its perfect to me.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

I believe the feature you are looking for is the ability to store incremental backups on a remote server. This isn't supported in cPanel version 64, but it's planned for inclusion in cPanel version 66:

Support for remote incremental backups

This will allow you to store incremental backups on a remote destination. Regarding a workaround in the meantime, could you let us know what type of remote system you plan to store the backups on? Is it on an extra hard drive, your own computer, or another server?

Thank you.
 

Augusto Will

Active Member
Sep 9, 2011
43
6
58
cPanel Access Level
Root Administrator
No, I just need to download manually via RSYNC.
Need to know only how to download and upload. Just that

How can i DOWNLOAD via RSYNC manually preserving hard links, symlinks and permissions.

i don't have any ftp server to send.

I need to know how to download incremental backups to my notebook and how to upload to another server in a way that can be restored.

Is possible to do that with mounted sshfs in order to preserve hard links, symlinks(if any) and other things needed to restore like permissions, ownership(ownership is needed when restoring an account?)?

If possible in a way that hardlinks are preserved and rsync dont download all over again and only new things.

Thank you
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

Yes, that command would work to pull the /backups directory from the remote server to the server you are running the command on. It's a good idea to create a test account, generate a backup for it, terminate the test account, and then restore it with the data pulled via rsync to verify it works as intended.

Thank you.
 
  • Like
Reactions: Augusto Will