Posts

Showing posts from September 2, 2018

Backup Full Reseller account WHM/cPanel

Question: (Copied From Cpanel forums ) I would like to backup only one #Reseller completely with all his accounts. Answered:  There is no way to do it via WHM unless you plan to update the list of users every-time they add a new one, but you can do so using SSH like so: Code:  for i in $(whmapi1 listaccts searchtype=owner search=RESELLERUSERNAME want=user |grep user: | awk '{print $2}') ; do /scripts/pkgacct $i ; done You would just change RESELLERUSERNAME with the actual resellers username, any accounts owned by that reseller will get a full cPanel account backup created in /home/ You can also changes the location to where the backups get stored like so: Code: for i in $(whmapi1 listaccts searchtype=owner search=RESELLERUSERNAME want=user |grep user: | awk '{print $2}') ; do /scripts/pkgacct $i /backup ; done If we want to take it one step further then I would actually create a folder with a date first otherwise the old backups will ge