Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday, 25 January 2014

How to Backup Cpanel Reseller's Domains via Command

If you want to backup the domains under a reseller account in the server,It will be difficult to backup 100+ domains under the reseller account .

In order to backup Cpanel Reseller's Domains via script , Just do following two steps.

1) This command will generate the list of users under the reseller 'reseller'.
# cat /etc/trueuserowners | grep reseller | cut -d: -f1 > reseller_list.txt
Note : The file /etc/trueuserowners shows which reseller owns each account.


Now "reseller_list.txt" generated in your " pwd " contains the list of users under the reseller named ' reseller'.

To backup the domains under the reseller to a path /backup, you can execute the command :
# for i in `cat reseller_list.txt` ; do /scripts/pkgacct $i /backup; done

That's it . :-)

No comments:

Post a Comment