Hi, Is your server loaded heavily while cPanel backup is running? You can use the following script to backup Entire cPanel account’s home directory, please note that you need to backup MySQL database separately, for MySQL database backup you...
Continue reading →
Hello, Is your server loaded heavily while Plesk backup is running? You can use following script will help you backing up mail, and website contents of your plesk server, you need to execute this is your plesk server. All you need...
Continue reading →
Hi, The following shell script will backup all the individual databases present in your server in .sql format and store it under /mysqlbackup folder. Make sure you have mysql databases in /var/lib/mysql and a folder with name /mysqlbackup. Set a...
Continue reading →
Hi, Do you want an email alert if someone access your server.?. then you can follow the steps and execute the following script. Create a file say file.txt and add the following contents to it. #vi file.txt echo...
Continue reading →
Hi, You can use this script to delete tmp files if the /tmp partition memory goes beyond 70 percent by leaving eacclarator folder alone, #/bin/bash #Script to delete tmp files except eacclarator s=df -h |grep tmp | cut...
Continue reading →
Hi, The following is the script which will send mail to admin if the server’s load is more than 15, please enable cron to execute it frequently. #!/bin/bash SUBJECT="`hostname`server load is high" TO=admin@yourdomain.com uptime > /tmp/load...
Continue reading →
Hi, Topics related to linux shell scripting are discussed here
Continue reading →
Hi, The following script will check for top 20 processes which uses maximum memory resource in the server and will store it in “overusage” file only if the free memory goes below 700MB. Set cron to execute this script whenever needed. ...
Continue reading →