I am trying to automate backup with rsync to an external hard disk. What I want to do is to execute this command automatically when external hard disk is plugged. I do not want to run it when other hard disk or flash drive is plugged in. Can some please point me in the right direction. I am using Ubuntu 12.10.
Here is the command which I am planning to use.
rsync -arLth --progress --exclude-from '/home/user1/.backupExclude' /home/user1 media/user1/T500Backup/
and here is my .backupExclude file
user1@SCAR:~$ tail ~/.backupExclude Dropbox Movies user1@SCAR:~$