rsync: First version of rsync backup jobs

This commit is contained in:
Ossi Herrala 2013-08-14 11:38:57 +00:00
parent d785e48a55
commit 30d8c44c6f
3 changed files with 220 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/bin/sh
RSYNC_LOGDIR="/srv/rsync-log"
cd $RSYNC_LOGDIR || exit 1
for host in `ls *.log | cut -d"-" -f1 | sort -u`; do
LOG=`ls $RSYNC_LOGDIR/$host-*.log | sort -nr | head -n1`
ls -l --time-style=full-iso $LOG
grep "^\*\*\*\*\*" $LOG
echo ""
done