Add comment about --link-dest

This commit is contained in:
Nico Schottelius 2007-08-20 12:45:23 +02:00
parent fe2d9d2fe5
commit 69ae9076e3
1 changed files with 2 additions and 0 deletions

View File

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