How to restore incremental backup

ljesh

Well-Known Member
Aug 2, 2008
65
0
56
I enabled Incremental backups in WHM and the system created the backup for all users.
My question is: every night everything gets copied to another, offsite, place.
How will I restore the backup if I need them?
Asked differently, if a client decides to leave us and requires the daily backup (we have that kind of policy) what should I give to him? Since the file isn't username.tar.gz
 

sparek-3

Well-Known Member
Aug 10, 2002
2,042
230
368
cPanel Access Level
Root Administrator
Place the user directory in /backup/cpbackup/daily replace /backup with the backup partition that is defined in your configure backup. You can also use weekly, or monthly instead of daily. You may be able to even create your own directory inside the cpbackup directory, I think that used to work.

Then from your WHM go to Restore Backups and select the appropriate directory and account to restore from. I think you have to have backups configured to be incremental, so if it is not already set to that use the Configure Backup link to set it.

At least this used to work a couple of versions ago, haven't tried it in a while. That is the only way that I know of to restore an incremental backup. I'm not sure if it is possible to restore an incremental backup with /scripts/restorepkg. You could always tar up the incremental backup (gzip is not necessary) and place the tar file in /home and run /scripts/restorepkg. But that seems a little wasteful since you are essentially tarring something up that is just going to immediately be untarred.
 

ljesh

Well-Known Member
Aug 2, 2008
65
0
56
sparek, you answered my question just the way i needed the answer. Thank you very much for that.

I hope someone from cPanel can confirm what you said about the procedure. Backups are very very important and I wouldn't like to play with them without knowing what am I doing.
Thanks.
 

Infopro

Well-Known Member
May 20, 2003
17,090
519
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Ok, I understand that part. But what if I want to use the last weeks incremental backup on another cpanel server? How do I restore it there? I don't have the username.tar.gz to place it on the another's server /home so I can restore it...
Why you don't understand me? :)
I want to restore a backup that is old 1 week ago for example. I have Incremental backups activated. How do I restore that 1 week old incremental backup on another cPanel server?
I hope this is clearer :)
You stated, 'another server'. I understood you fine.