Following are the steps to take increment backup of reseller account on backup server. 1) First we need to find out the user name which is under the reseller account. On shared/source server :- vi /home/resellerUsername/backup.sh # For finding the...
Category: Shell Programming and Scripting
cPanel, Shell Programming and Scripting
find out the reseller name with domains
How to find out the reseller name with domains? Ans : If you want to list all cPanel accounts under a specific reseller, then you can use the below simple shell script. 1) Crete the file reseller.sh and add the...
cPanel, Shell Programming and Scripting
terminate old suspended accounts
Question : How to terminate old suspended accounts on cpanel server ? Ans: You can terminate the 90 days old suspended accounts by using the following script. 1) vi /root/terminatesuspended.sh ================== for i in `find /var/cpanel/suspended/ -mtime +90 | cut...
Basic Linux, Shell Programming and Scripting
Script to automatically start nginx
You can use the following script to auto restart the nginx on the server. The following script check the status and if it is down then it restart. You can set cron "* * * * * /bin/sh /root/autongnixrestart.sh" ========================== #!...