From 69ae9076e344bb8c6345ce995a94731ea27a641c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 20 Aug 2007 12:45:23 +0200 Subject: [PATCH] Add comment about --link-dest --- ccollect.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ccollect.sh b/ccollect.sh index 203ff7e..048f051 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -446,6 +446,8 @@ while [ "${i}" -lt "${no_sources}" ]; do # clone from old backup, if existing # if [ "${last_dir}" ]; then + # must be absolute, otherwise rsync uses it relative to + # the destination directory. See rsync(1). abs_last_dir="$(cd "${last_dir}" && pwd -P)" || \ _exit_err "Could not change to last dir ${last_dir}." set -- "$@" "--link-dest=${abs_last_dir}"