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}"