Skip to main content
Question

rsync monitoring

  • March 9, 2012
  • 4 replies
  • 9 views

Forum|alt.badge.img+8

Just wanted to know, how everyone is monitoring their rsyncs to Distribution Points.

I've currently got mine going to a log file, but wanted to know if anyone has done more then this?

I want to be able to add date stamps to each sync but not manage to get this working successfully, who is everyone else making sure that their syncs are working correctly?

Thanks

Abz

4 replies

Forum|alt.badge.img+7
  • Contributor
  • March 9, 2012

How are you currently directing this to a log file?


Forum|alt.badge.img+13

no need to redirect. rsync has the "--log-file=FILE" option.


Forum|alt.badge.img+8
  • Author
  • Contributor
  • March 12, 2012

Hi Sorry about the late reply

Hope you all had a nice weekend

This is what im currently using as a shell script executed by a lauchdaemon

"RSYNC=/usr/bin/rsync
SSH=/usr/bin/ssh
RUSER=administrator
RHOST=buildbox-lon3.imagination.com
RPATH='"/Volumes/Data/CasperShare/"'
LPATH=/Volumes/Data/CasperShare/
LOGFILE=/var/log/casper_sync.log

$RSYNC -avrpogz --delete --progress -P -e $SSH $RUSER@$RHOST:$RPATH "$LPATH" 2>&1 >> $LOGFILE"


Forum|alt.badge.img+8
  • Author
  • Contributor
  • March 12, 2012

Thanks rockpapergoat, I'll have a look at the log option

Abz