The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Full Restore - Quickest Method?

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

  1. HostNine.Com

    HostNine.Com Member

    Joined:
    Sep 10, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
Loading...

Share This Page