Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a successful rsync local backup using:

rsync -vart --del /mnt/main/main /mnt/backup --log-file=/var/log/rsync_mainBackup.log

Can anyone tell me how the success/failure of the operation can be emailed to me? Or even the .log file?

share|improve this question

you can check the return value of the rsync process and you can test for the existence of a maillog.

You can use the mail(1) command to send mail from the shell.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .