Web Hosting Talk







View Full Version : How to restore a Rsync Backup from WHM ?


Raydon
10-31-2004, 12:55 AM
I have a server running on Cpanel. My primary HDD is for storing data and Secondary HDD for backup purposes.

I am running "Incremental Backup" every night under the backup configuration in WHM. When i SSH into my server, i can see that all the domains and files are backup in /backup/cpbackup/daily/

The files backup are not in tar.gz format so when i tried to restore my account under WHM, i received this msg :

Searching /home....
No Restorable archives found!
Searching /usr/home....
No Restorable archives found!
Searching /web....
No Restorable archives found!
Searching /home2....
No Restorable archives found!
Searching /home3....
No Restorable archives found!
Searching /root....
No Restorable archives found!
Searching /usr....
No Restorable archives found!
No archives where found!!
This feature will restore full backups, cpanel backups and cpanel move files in the format of:
cpmove-user.tar.gz, user.tar.gz, backup-date_time_user.tar.gz
The files must be in one of these directories on the server:
/home,/usr/home,/web,/home2,/home3,/root,/usrYou must upload the file to one of the above locations before
using this feature.



Can anyone advise me how to restore my account from the rsync backup in the /backup/cpbackup/daily/ ??

Appreciate if someone can write down the procedure to restore. Thanks a million !

IGobyTerry
10-31-2004, 01:02 AM
use the "Restore Backups" function (second option right below configure backups) rather than the "Restore a Full Backup/cpmove file" function.

assuredhost.com
10-31-2004, 04:55 PM
I think following set of command can help you. It will resote the full data from the backup drive. Can give a try after consulting with a sys admin

# rsync -vrplogDtH /backup/usr/local/apache/conf /usr/local/apache
# rsync -vrplogDtH /backup/var/named /var
# rsync -vrplogDtH /backup/home/* /home
# rsync -vrplogDtH /backup/usr/local/cpanel /usr/local
# rsync -vrplogDtH /backup/var/lib/mysql /var/lib
# rsync -vrplogDtH /backup/var/cpanel /var
# rsync -vrplogDtH /backup/usr/share/ssl /usr/share
# rsync -vrplogDtH /backup/var/ssl /var
# rsync -vrplogDtH /backup/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty
# rsync -vrplogDtH /backup/var/log/bandwidth /var/log
# rsync -vrplogDtH /backup/usr/local/frontpage /usr/local
# rsync -vrplogDtH /backup/var/spool/cron /var/spool
# rsync -vrplogDtH /backup/root/.my.cnf /root
# rsync -vrplogDtH /backup/etc/httpd/conf/httpd.conf /etc/httpd/conf
# rsync -vrplogDtH /backup/etc/sysconfig/network /etc/sysconfig