This bash script is very useful if you are planning to do cpanel account migrations purely from the commandline and automate the process of the migration . This scripts extracts the names of all reseller users in the server to the file
/opt/reseller_list
and correspondingly for all users in this list extract the cpanel usernames to the file /opt/reseller_users_<resellername>
and all domains under the reseller to
/opt/reseller_domains_<resellername>
Once done with your use you can clean out the files created by the script using the single command
rm -f /opt/reseller*
As always this script is not fool proof but was perfected after several tries of a very large account migration process.You are welcome to send modifications and ideas to enhance this script
*This script can be run on successfully only on Cpanel servers and is tested upto Cpanel version 11
wget http://gnusys.net/downloads/cpanelresellerdetails.bash
bash cpanelresellerdetails.bash
This post was written by Anoop Alias on May 25, 2008
