From 20cee665425664d5c8381afd18cbb816e852d9fa Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Tue, 28 Oct 2014 11:17:34 +0000 Subject: [PATCH] rsync-backup: Use relative path names so it's possible to rsync /var/log to destination/var/log --- rsync/templates/rsync-backup.sh.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsync/templates/rsync-backup.sh.erb b/rsync/templates/rsync-backup.sh.erb index 394f6ad..f6f3f9e 100644 --- a/rsync/templates/rsync-backup.sh.erb +++ b/rsync/templates/rsync-backup.sh.erb @@ -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 $?