How to manually (terminal, command line) backup, migrate, restore single user account?
Approach below, helps to manage tasks over terminal, which is a much faster way to handle the task.
Run on source server:
Run on destination server:
After successfull migration run on source server
Replace $user with your user account name and $userdomain with user domain name
Approach below, helps to manage tasks over terminal, which is a much faster way to handle the task.
Run on source server:
Code:
/scripts/pkgacct $user
mv cpmove-$user.tar.gz /home/$user/public_html
chmod 644 /home/$user/public_html/cpmove-$user.tar.gz
Code:
cd /home
wget http://$userdomain/cpmove-$user.tar.gz
/scripts/restorepkg $user
Code:
/scripts/killacct $user
Last edited: