You may need to run something as follows (assuing that you have resored /var/cpanel/user:
On main server (to backup)
Code:
for i in $(ls /var/cpanel/users)
do
/scripts/pkgacct $i
done
Restore on another server (again assuming that you have updated file):
Code:
for i in $(ls /var/cpanel/users)
do
/scripts/restorepkg $i
done
Do you have username.tar.gz for each user? or is it one file only? If you have username.tar.gz for each user, type:
Code:
for f in *.tar.gz;
do
u=$(echo $f| cut -d'.' -f1);
/scripts/restorepkg $u ;
done
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!
If you have knowledge, let others light their candles at it.
Certified to work on
HP-UX /
Sun Solaris /
RedHat