Posted on 03-09-2012 07:32 AM
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
Posted on 03-09-2012 11:32 AM
How are you currently directing this to a log file?
Posted on 03-09-2012 11:50 AM
no need to redirect. rsync has the "--log-file=FILE" option.
Posted on 03-12-2012 05:00 AM
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"
Posted on 03-12-2012 05:01 AM
Thanks rockpapergoat, I'll have a look at the log option
Abz