HostNine.Com

Member
Sep 10, 2006
17
0
151
Houston, TX
When using cPanel's built in backup system a full server restore can take days using the /scripts/restorepkg method as it always syncs the vhosts and ftp passwords on each account restore. I also noticed the maildir conversion takes forever even if the accounts were already backed up in a maildir environment.

The quickest method to start the restore seems to be:

Code:
#mount /backup as /home2 for restore
for user in `ls /home2/cpbackup/daily`
do
mv /home2/cpbackup/daily/$user /home2/cprestore/cpmove-$user
touch /home/cpmove-$user.tar.gz
/scripts/restorepkg $user
mv /home2/cprestore/cpmove-$user /home2/cprestore/$user
done
Is there a way to modify /scripts/restorepkg to where it doesn't do the maildir conversion and vhosts update then we can run it at the very end of the restore?