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'.
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 :
That's it . :-)
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.txtNote : 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