Cpanel -> Cpanel (Bulk)
Quick guide on the steps to migrate cPanel accounts in bulk to another cPanel server
- Add the list of domains that need to be migrated in list-domains.txt 
- Get the username for all domains and save it in list-users.txt 
for i in `cat list-domains.txt`; do cat /etc/userdomains | grep$ $i | awk {'print $2'}; done- Now start generating a tar ball 
cat list-users.txt | xargs -i /scripts/pkgacct {}- Or we can skip the home directory and rsync it later as we just backup the config file and databases 
cat list-users.txt | xargs -i /scripts/pkgacct --skiphomedir {}- Get all the tar balls that been transferred from old server to a new server 
ls -al | grep '.tar.gz' >> list-tarball.txt- Start the restoration 
cat list-tarball.txt | xargs -i /scripts/restorepkg {}Last updated
Was this helpful?
