[Gllug] Verifying rsync copy
Jon Dye
jon at pecorous.co.uk
Wed May 13 08:59:14 UTC 2009
Hi all,
I use rsync to copy a directory of files to a remote location from a
cron job once a day. Currently I give it the --verbose option so in
my email from cron I can see that it's actually worked (normally it's
silent). I'd rather just have my cron email tell me if it transfered
anything and/or that the remote and local directories have the same
contents.
One thought I had was to run the rsync without --verbose first to make
the copy and then to run it again with --verbose to verify the result.
Unfortunately this still passes me several lines that I don't really
want. Does anyone know if there is some way to get rsync to just
return whether or not files were actually sent? Is there some clever
parsing of output I can do? Anyone have any other ideas (using any
other tools)?
Thanks,
JD
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list