Old server
Take Backup
========
vi script.sh
for i in `cat /home/users.txt`;
do /scripts/pkgacct $i;
done
To move backup
==========
scp cpmove-*.tar.gz root@IP(New server):/home/
scp -P22 cpmove-*.tar.gz root@IP(New server):/home/
passwd:
rm -rf cpmove-*
In new Server:
============
restore Backup
for i in `cat /home/user.txt`;
do /scripts/restorepkg $i;
done
For force restore
=============
for i in `cat /home/user.txt`;
do /scripts/restorepkg --force $i;
done
rm -rf cpmove-*
=================
Make & Move multiple cPanel user backups
Take Backup
========
vi script.sh
for i in `cat /home/users.txt`;
do /scripts/pkgacct $i;
done
To move backup
==========
scp cpmove-*.tar.gz root@IP(New server):/home/
scp -P22 cpmove-*.tar.gz root@IP(New server):/home/
passwd:
rm -rf cpmove-*
In new Server:
============
restore Backup
for i in `cat /home/user.txt`;
do /scripts/restorepkg $i;
done
For force restore
=============
for i in `cat /home/user.txt`;
do /scripts/restorepkg --force $i;
done
rm -rf cpmove-*
=================
Make & Move multiple cPanel user backups
No comments:
Post a Comment