Hi All,

I am posting here because I have not had any luck with Google, or the forums.

My aim is this:

To backup my /MNT/DATA directory automatically when the USB Disk is attached (da0).

I know that danmero posted a very similar script on the forums ( http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=12&t=2073 ) but :

a) This script doesnt work for me (see post)
b) I dont really want the disk encrypted

The reason I want to do this is because for several hours once a week the user connects the USB disk to be taken off site when the sync is finished.

So I guess what I need to do is:

Mount the disk
Rsync (with option to delete anything on destination not on source)
Unmount when finished

And really REALLY cool would be a email to the user when the rsync has finished.

I hope that someone can please take the time to help me.

Thanks in advance,

-Al


--
Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom.
 - Viktor E. Frankl