Skip to main content

Restore Multiple Backups

Comments

9 comments

  • triantech
    Hey, - Move all those cpmove files to the new server using SCP - Prepare a file ( userlist.txt) which lists the account name's of the backup's ( one account name in one line ) to be restored - Run this script in the dedicated server - for i in `cat userlist.txt`; do /scripts/restorepkg $i; done
    0
  • cPanelMichael
    Hello :) The instructions in the previous post are sufficient if you only have the cpmove archives. Let us know if you encounter any difficulties with the process. Thank you.
    0
  • aldhy
    [quote="triantech, post: 1705241">Hey, - Move all those cpmove files to the new server using SCP - Prepare a file ( userlist.txt) which lists the account name's of the backup's ( one account name in one line ) to be restored - Run this script in the dedicated server - for i in `cat userlist.txt`; do /scripts/restorepkg $i; done
    it's work thank you
    0
  • triantech
    Hello, Great to know :)
    0
  • IndicHosts.net
    We scp over +50 backup*.tar.gz archives and user a derived script which worked, wanted to share for record screen; ls backup-*.gz /home > acct; for i in `cat acct`; do /scripts/restorepkg $i; done; rm acct
    0
  • cPanelPeter cPanel Staff
    Hello, It's not really necessary to create an acct file. You could just as easily run: # screen; for i in `ls /home/backup-*.gz` ; do /scripts/restorepkg $i; done
    which should accomplish the same task.
    0
  • JustSomeGuy
    # screen; for i in `ls /home/backup-*.gz` ; do /scripts/restorepkg $i; done
    If I have all my backups as incremental inside /home3/incremental/accounts, what command would I use to restore 300+ sites. I wish CPanel would have an option to select all backups Thanks
    0
  • cPanelMichael
    Hello, You will need to compress the incremental backup directories for the accounts into individual archives if you want to restore them via the command line using the /scripts/restorepkg utility. Then, simply change "/home/backup-*.gz`" in the example to /home3/incremental/accounts/backup-*.gz`". Thank you.
    0
  • JustSomeGuy
    So far with my new box, I have one incremental backup and was able to run this to restore it onto the new server. screen; for i in `ls -d *` ; do /scripts/restorepkg $i; done
    0

Please sign in to leave a comment.