[Dirvish] sending mail on any failure
Shawn (Red Mop)
redmopml at comcast.net
Wed Apr 15 18:42:41 UTC 2009
On Wednesday 15 April 2009 03:03:52 am Dave Howorth wrote:
> fostandy wrote:
> > Hi, I'm new to this backup game. I'm wondering if there is a
> > straightforward way I can make dirvish (or it's pre/post exec scripts)
> > send an email if any stage of the backup process fails?
>
> My cron is set up to mail me with whatever output the job produces. So
> there's no need for me to do anything at all to get errors.
>
> It does mean I normally get a mail every day telling me that the backup
> has run. But the absence of that mail tells me there's something wrong
> elsewhere in the system ...
>
Looking for something like this? It adds [**] to the subject if there an
error of some kind.
Subject: Dirvish status (2009-04-15@(altered-host))
Disk usage:
3.5G 2.0G 1.5G 59% (altered-directory)
Image disk usage:
4.1M (altered-image-location)
================== (altered-vault) ==================
client: (altered-client)
tree: (altered-tree)
rsh: ssh
Server: yertle
Bank: (altered-bank)
vault: (altered-vault)
branch: default
Image: 2009-04-15
Reference: 2009-04-14
Image-now: 2009-04-15 09:09:41
Expire: +4 weeks == 2009-05-13 09:09:41
Expire-rule: * * * * * +4 weeks
(altered exceptions)
SET permissions devices numeric-ids stats
UNSET checksum init sparse whole-file xdev zxfer
ACTION:
rsync -vrltH --delete -pgo --stats -D --numeric-ids --exclude-from=(altered-exclude --link-dest=(altered-link-dest
(altered-backup-client) (altered-backup-destination)
Backup-begin: 2009-04-15 09:09:41
Backup-complete: 2009-04-15 09:10:52
Status: success
More information about the Dirvish
mailing list