Thanks Dan, but this is not very usefull. I can't send to customers something 
like this

007-10-05 01:30:01 incr backup started back to 2007-10-04 01:30:01 (backup 
#21) for directory /
2007-10-05 01:33:18 incr backup started back to 2007-10-04 01:30:01 (backup 
#21) for directory /data/netserv.new
2007-10-05 01:33:50 incr backup started back to 2007-10-04 01:30:01 (backup 
#21) for directory /data/radius
2007-10-05 01:34:05 incr backup 22 complete, 7 files, 13737925 bytes, 0 
xferErrs (0 bad files, 0 bad shares, 0 other)
2007-10-05 01:34:05 removing incr backup 15


I think that i shall have to write something better, some script that will be 
able to parse output from backuppc status command and format it.

But thanks anyway

Martin


On Thursday 18 October 2007 15:34:27 dan wrote:
> you might want to use tail on that zcat also, you would get a pretty big
> email otherwise
>
> On 10/18/07, dan <[EMAIL PROTECTED]> wrote:
> > you could do something like this in a script
> >
> > #!/bin/bash
> > #logfilemails
> > for file in `find /path/to/backups -name Xlog*`; do
> >      echo "-----------------------------------------------------"
> >      echo 'backup summary for $file'
> >      Backuppc_zcat $file
>
> change to:
>      /path/to/Backuppc_zcat $file | tail
>
>      echo "-----------------------------------------------------"
>
> > done
> >
> > and put that script into cron like
> > 1 6 * * 1-5 /path/to/script | mailx emailaddress
> >
> > this needs some tweeks, i didnt test it but it is a basic solution to
> > what you need
> >
> > On 10/18/07, Martin Šoltis <[EMAIL PROTECTED]> wrote:
> > > Hi all
> > >
> > > I am searching after some script or possibility to send email at some
> > > addresses after every backup, and in this email i need :
> > >
> > > 1. What has been backed up.
> > > 2. When
> > > 3. If backup was successfull or not
> > > 4. If not - why
> > >
> > > Do you know someone if there is something like this ? First of all i
> > > want to
> > > ask, because i don't want to write something that is already done :-)
> > >
> > > Thanx
> > >
> > > Martin
> > >
> > > -----------------------------------------------------------------------
> > >--
> > >
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > _______________________________________________
> > > BackupPC-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/backuppc-users
> > > http://backuppc.sourceforge.net/



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to