Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default How do I restore a backup that was made on another cPanel server?

    I thought the answer would be much easier to see/figure out in WHM:

    I have made backups, not compresses/cpmove backup files, but full regular backups to the second hard drive using WHM, e.g. daily/weekly, etc.

    Okay, so I copied these backups via rsync to a separate (backup/archive) server.

    Now I need to restore one of these accounts to a new server, but how exactly do I do this?

    Thanks very much for anything here.

    --------
    BTW, I spent quite a bit of time searching through this forum and could not find any answer that directly applied.

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    You can copy the .tar.gz backup file into /backup/cpbackup/daily or any of the daily, weekly, or monthly directories and then it should show up in your WHM when you go to restore an account. Actually, I think you can create a directory in the /backup/cpbackup directory and place the .tar.gz file into that directory and then select that directory from the WHM Restore Account feature. Adjust the /backup directory depending on your current set up, but this is usually the default directory.

    Alternatively, you can restore the account from the shell. You would need to copy or move the .tar.gz file into the /home directory (doesn't have to be /home, there's a list of directories that the script looks through, I don't remember them, I usually juse use /home). Then from shell issue the command:

    /scripts/restorepkg <username>

    Where <username> refers to the username of the backup file (i.e. john.tar.gz backup file would be the john user).

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Quote Originally Posted by sparek-3
    You can copy the .tar.gz backup file.....
    I don't have a .tar.gz file.

    Each account was archived in a series of separate directories & files.

  4. #4
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    Was the backup made using the CPanel backup feature? It was just set for incremental backups?

    You should still be able to restore the account, just move the username directory inside the /backup/cpbackup/daily or any of the daily, weekly, or monthly directories (again, you should be able to create a directory inside the /backup/cpbackup directory and then select it from the WHM).

    Now log into the WHM on the server that you are restoring the account onto and select Restore Backups from the WHM and select the directory that you placed the backed up directory into.

    If the user is not seen here, then you may need to configure the backup script to use incremental backups. Just click on Configure Backup and check the Enabled button next to "Incremental backup" and click Save. Then go back to the Restore Backups and the account should be listed. Then you can restore the account. Be sure to go back to the Configure Backup and change the Incremental backup option back if you changed it.

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Quote Originally Posted by sparek-3
    Was the backup made using the CPanel backup feature? It was just set for incremental backups?
    Yes, and yes.

    Okay, thanks much for the advice.

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 01-29-2010, 09:04 AM
  2. Replies: 1
    Last Post: 07-31-2008, 02:24 AM
  3. How to restore from server backup
    By stormy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-03-2008, 07:22 AM
  4. Restore from Remote Server Cpanel Backup
    By hostseeker in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-04-2006, 10:38 PM
  5. ever made a successful restore?
    By altoyes in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 11-14-2005, 08:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube