Added --delete-excluded to rsync command line.

Also exclude /sys by default.
This commit is contained in:
Benoit.S « Benpro » 2013-08-04 12:06:20 +02:00
parent a2fcf5cd3d
commit 557fcb282e
2 changed files with 3 additions and 2 deletions

View file

@ -22,9 +22,9 @@ start=$(date --rfc-3339=seconds)
tmplog=$(mktemp --tmpdir=/tmp evobackup.XXX)
# rsync command line to backup all data.
rsync -avz --delete --force --ignore-errors --partial \
rsync -avz --force --ignore-errors --partial \
--include-from=/etc/evobackup/conf.d/include.cf \
/ -e "ssh -p $SSHPORT -4" \
--delete --delete-excluded / -e "ssh -p $SSHPORT -4" \
root@${BACKUPSERVER}:/var/backup/ > $tmplog
status=$?

View file

@ -11,6 +11,7 @@
- /proc
- /selinux
- /run
- /sys
- /usr/src
- /usr/doc
- /usr/share/doc