rsync monitoring

abz_mungul
New Contributor III

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 4

JRM
Contributor

How are you currently directing this to a log file?

rockpapergoat
Contributor III

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

abz_mungul
New Contributor III

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"

abz_mungul
New Contributor III

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

Abz