The following method can be used when a user login to a linux machine, an email will be sent with IP information. For this to work, you need to have the program mutt installed. Then add the following to the user’s .bashrc file, which is located in /home/$user/.bashrc echo `who` | /usr/bin/mutt -s “SSH Alert” [...]

{ 0 comments }

The following two scripts on crontab will automatically back up and email the database on a timely manner. This script will work on daily backup of Blogs such as WordPress / Drupal etc In this example, I will be using the directory /home/backup/database It is recommended to create two different shell script named dbback.sh and [...]

{ 1 comment }