Restore Multiple Backups
hello,
how to restore multiple backups ?
i want to move from reseller hosting to Dedicated Server... i only have cpmove file
thank you
-
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 -
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 -
[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 you0 -
Hello, Great to know :) 0 -
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 acct0 -
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 -
# 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 Thanks0 -
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 -
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; done0
Please sign in to leave a comment.
Comments
9 comments