rsync-backup: Use relative path names so it's possible to rsync /var/log to destination/var/log
This commit is contained in:
parent
2224bb84d9
commit
20cee66542
1 changed files with 1 additions and 1 deletions
|
@ -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 $?
|
||||
|
|
Loading…
Add table
Reference in a new issue