rsync-backup: Use relative path names so it's possible to rsync /var/log to destination/var/log

This commit is contained in:
Ossi Herrala 2014-10-28 11:17:34 +00:00
parent 2224bb84d9
commit 20cee66542

View file

@ -7,7 +7,7 @@ FLOCK_OPTS="--exclusive --nonblock"
FLOCK_FILE="/var/lock/<%= @name -%>"
RSYNC="/usr/bin/rsync"
RSYNC_OPTS=( -ax <%= @enable_acl ? "-A" : "" -%> <%= @options ? options : "" -%> --delete --itemize-changes <%= @_excludes -%> )
RSYNC_OPTS=( -axR <%= @enable_acl ? "-A" : "" -%> <%= @options ? options : "" -%> --delete --itemize-changes <%= @_excludes -%> )
(
$FLOCK $FLOCK_OPTS 200 || exit $?