We can do account transfer either through SSH or WHM, see what can be done in SSH as root
================
Take Backup(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/
passwd:
rm -rf cpmove-*
In new Server:
restore Backup
for i in `cat /home/user.txt`;
do /scripts/restorepkg $i;
done
rm -rf cpmove-*
================
Lets make it more simple
for i in `cat /home/user.txt`; do /scripts/pkgacct $i; scp /home/cpmove-$i.tar.gz root@192.40.115.35:/home/; ssh root@192.40.115.35 "/scripts/restorepkg /home/cpmove-$i.tar.gz"; done;
There are many pre and post migration check list which I will discuss soon!
================
Take Backup(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/
passwd:
rm -rf cpmove-*
In new Server:
restore Backup
for i in `cat /home/user.txt`;
do /scripts/restorepkg $i;
done
rm -rf cpmove-*
================
Lets make it more simple
for i in `cat /home/user.txt`; do /scripts/pkgacct $i; scp /home/cpmove-$i.tar.gz root@192.40.115.35:/home/; ssh root@192.40.115.35 "/scripts/restorepkg /home/cpmove-$i.tar.gz"; done;
There are many pre and post migration check list which I will discuss soon!
Comments
Post a Comment