Question
How do I manually transfer all accounts using pkgacct and restorepkg?
Answer
- Create a directory or mount a drive to the system. In this example, we'll use the mount point
/transferdata/
# mkdir /transferdata
- Run the following to create a backup on all accounts and place that backup into
/transferdata.
# for x in `ls -1 /var/cpanel/users`; do /scripts/pkgacct $x /transferdata; done
- Once the accounts have been backed up, move the backups to the new server. Move over your mounted drive to the new system, or transfer the files via a protocol such as SFTP or SCP.
Warning: Please replace $PortNumber with your SSH port.
# scp -r -P $PortNumber /transferdata root@server-ip:/transferdata
- On the destination server, login as the
rootuser and run therestorepkgscript.
# cd /restoredata
for x in cpmove*.tar.gz; do /scripts/restorepkg --force $x ; done
Comments
0 comments
Article is closed for comments.