fixyourserver.com

A lot of stuff and things…

Restore Multiple cPanel Accounts

First, create a file and add all usernames to be restored:
ie. accountstoberestored

Next make sure all backups or cpmove files are in the /home/ dir

Lastly:
for i in `cat /home/backup/accountstorestore`; do /scripts/restorepkg $i; done

Actually, there’s more than one way to skin a kitten… move all your backups to /home/ and do one of these:
for x in `ls | grep tar`; do /scripts/restorepkg $x; done

Hope it works.

And if your a dick like me, remember to use ` and not ‘ 🙂

-Under the wadar

Next Post

Previous Post

Leave a Reply

© 2017 fixyourserver.com

Theme by Anders Norén