First, create a file and add all usernames to be restored:
Next make sure all backups or cpmove files are in the /home/ dir
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