rsync: First version of rsync backup jobs
This commit is contained in:
parent
d785e48a55
commit
30d8c44c6f
3 changed files with 220 additions and 0 deletions
11
rsync/files/rsync-backup-summary.sh
Normal file
11
rsync/files/rsync-backup-summary.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue