Step 1. Buat backup di server lama tanpa homedir, copy ke server baru dan delete backup setelah dicopy.
for x in `ls -A1 /var/cpanel/users/`; do /scripts/pkgacct --skiphomedir ${x} ; rsync -aP /home/cpmove-${x}.tar.gz -e ssh root@NEW-SERVER-IP:/home/ ; rm -f /home/cpmove-${x}.tar.gz ; done
Step 2. Lakukan restore backup di server baru
for x in `ls -A1 /home/cpmove*` ; do /scripts/restorepkg /home/${x} ; done
Step 3. Lakukan rsync folder /home dari server lama ke server baru
rsync -aP /home/ -e ssh root@NEW-SERVER-IP:/home/
That’s all folk.