Script to create hosting packages on cPanel hosting server
Web hosting has completely different platforms and from these platforms one will host his business on-line or will earn through it. Sometimes if you would like to migrate a lot of accounts from one server to a different server then you would need create packages for each accounts and you’ll be able to simply create packages by usaing this script.
1) Initial you would need to create one Migarting-Accounts.txt file and add the the user name to it, for that you would like to create packages.
2) To Migration directory, create Migration directory for to move all the cPmove files from /home directory.
then use below command to create cpmove packages and moved to “Migration” directory.
for i in `cat /home/Migarting-Accounts.txt`;do /scripts/pkgacct $i; mv /home/cpmove-$i.tar.gz /home/Migration/;done
or Use this script for migrating Bulk accounts between cPanel hosting servers::
For Reseller::
cat /etc/trueuserowners | grep username | awk ‘{print “/scripts/pkgacct “$1}’
OR
1. cat /etc/trueuserowners | awk ‘{print $1}’ > 1.txt
then remove the sign “:” from 1.txt
for i in `cat 1.txt`;do /scripts/pkgacct $i; mv /home/cpmove-$i.tar.gz /home/Migration/;done
After that move the “Migration” folder and 1.txt file to remote server and by using following command restore all the accounts.
for i in `cat 1.txt`;do /scripts/restorepkg $i;done
To migrate you server you need a quality technical support from your hosting provider is deploying quality hosting services from last decade with reliability, quality hardware and tech savvy support people to solve any problem.