Restore from directory (created with increm. backup)

musti19

Well-Known Member
Jan 20, 2013
110
1
68
cPanel Access Level
Root Administrator
hello,
i configured whm to create incremental backups.
now i want to transfer this backups to another server.
Im using the pigz method, so i must extract the directory (because pigz dont support directorys)

How can i do restore from a directory?

In all examples are from tar.gz, but i need from directory(the incremental backups are also not compressed)

thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Does the destination server also use cPanel? If so, you can follow the instructions from this document:

Remote Restoration

Note that you should ensure incremental backups are enabled on the destination server so that it detects the directories instead of the archives. Or, you could package the directories into archives if you prefer.

Thank you.
 

musti19

Well-Known Member
Jan 20, 2013
110
1
68
cPanel Access Level
Root Administrator
Hello,
because of server problems on my cpanel server, i want to reinstall the system with cpanel (again)
And i want to restore the backup, that is transfered back to the new server (incremental backup[not tar.gz])
As i know, cpanel can only restore from tar.gz files.

But can the new server handle the incremental backup that is created from the old server, if i copy the backup on same directory?

Actually the backups are:
/backup/incremental/accounts
and
/backup/incremental/system
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Yes, simply upload those backups to their original locations after reinstalling the OS/cPanel. cPanel can actually restore incremental backup directories as long as incremental backups are enabled in the backup configuration.

Thank you.
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
Is there a way to restore via command line? With a couple of hundred accounts, one at a time is not viable when migrating a server. I do the package first, to get most of the data, then the incremental at migration time.

Also, the restorepkg seems to choke on .htaccess files, and will not restore a bunch. But, I do get an error so I know there was a problem.

Thanks.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
You will need to compress the incremental backup directories for the accounts into individual archives if you want to restore them via the command line using the /scripts/restorepkg utility.

Thank you.