Add comment about --link-dest

This commit is contained in:
Nico Schottelius 2007-08-20 12:45:23 +02:00
parent fe2d9d2fe5
commit 69ae9076e3

View file

@ -446,6 +446,8 @@ while [ "${i}" -lt "${no_sources}" ]; do
# clone from old backup, if existing # clone from old backup, if existing
# #
if [ "${last_dir}" ]; then 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)" || \ abs_last_dir="$(cd "${last_dir}" && pwd -P)" || \
_exit_err "Could not change to last dir ${last_dir}." _exit_err "Could not change to last dir ${last_dir}."
set -- "$@" "--link-dest=${abs_last_dir}" set -- "$@" "--link-dest=${abs_last_dir}"