Script for restoring multiple accounts from backup
admin | Nov 24, 2009 | Comments 0
The following script can be used to restore multiple accounts from the backups.
It is assumed that all the backup files are already present in the /home directory in the tar.gz format.
#!/bin/bash
#######################
for i in `ls | grep tar.gz | cut -d- -f2 | cut -d. -f1`
do
echo “Restoring $i….”
/scripts/restorepkg $i
echo “$i restored”
echo “====================”
done
echo “Restoration completed”
#######################
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547