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”
#######################


Shares
Contact Us On WhatsApp