From d67b35da2cca9a9aca43a40411e52ebe7bbd588e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 2 Feb 2011 08:52:49 +0100 Subject: [PATCH] go back to sourcedir, so destination can be unmounted Signed-off-by: Nico Schottelius --- ccollect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccollect b/ccollect index 80ad20a..02d9e5f 100755 --- a/ccollect +++ b/ccollect @@ -472,9 +472,10 @@ while [ "${source_no}" -lt "${no_sources}" ]; do export destination_dir="${ddir}/${destination_name}" # - # added marking in 0.6 (and remove it, if successful later) + # Mark backup running and go back to original directory # touch "${destination_dir}${CMARKER}" + cd "${__abs_mydir}" || _exit_err "Cannot go back to ${__abs_mydir}." # # the rsync part