Category Archives: Linux

Simple bash script to backup directory and MySQL database to Dropbox

Backup of important data or website is crucial if a system crash or hard drive failure occurs. There many software are available on internet to backup data. Some of those are paid or not easy to use, So I decided to create my own bash script to backup MySQL database and directories on Linux. This script also uploads backups to Dropbox account.

Continue reading

Find number of concurrent Apache connection by IP

Some time web server response very slow due to multiple concurrent connection to Apache. As we know that each web server has different Apache configuration depends upon its hardware (Processor and RAM). Maximum allowed Apache concurrent connection can be configured by ServerLimit directive in apache2.conf file. After exceeding this limit new apache connection goes in queue. Thus web server response very slow.

Continue reading