Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Full Restore - Quickest Method?

Discussion in 'General Discussion' started by HostNine.Com, Dec 17, 2006.

  1. HostNine.Com

    HostNine.Com Member

    Sep 10, 2006
    Likes Received:
    Trophy Points:
    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:

    #mount /backup as /home2 for restore
    for user in `ls /home2/cpbackup/daily`
    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
    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?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice