shi
New Member
Posts: 2
|
Post by shi on Jun 29, 2007 20:42:00 GMT 7
hi,
I've got the RSYNC & SSH modules installed, and I'm trying to set up an incremental backup script that will notify me by email when it fails. I'm backing up a Windows box which is acting as the rsync server. The plan is to run my backup script using a cron job on the Thecus unit. I know the Thecus can send emails because of its admin notify feature, but how can I do the same in my script?
thanks, Shi.
|
|
shi
New Member
Posts: 2
|
Post by shi on Jun 30, 2007 3:46:51 GMT 7
figured it out:
1. The shell script used to send out notifications is /img/bin/logevent/email 2. Just add your own event code to the case statement, copying the existing syntax (don't forget to save a backup copy of the original script) 3. When you want to send a notification, just call the script with your event code as the parameter, e.g. if you made your custom event code 999, you would call "/img/bin/logevent/email 999" 4. This works for me since I just want to get a notification of rsync failure when it occurs. If you want more flexibility, you should be able to figure out how to do that by looking at the rest of the script.
|
|