forked from ungleich-public/ccollect
remove redundant destination variable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
758e5a9059
commit
c7d35464ae
1 changed files with 1 additions and 4 deletions
5
ccollect
5
ccollect
|
@ -358,8 +358,6 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
destination="${ddir}"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Parameters: ccollect defaults, configuration options, user options
|
# Parameters: ccollect defaults, configuration options, user options
|
||||||
#
|
#
|
||||||
|
@ -473,7 +471,6 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
||||||
#
|
#
|
||||||
export destination_name="${INTERVAL}.$(${CDATE}).$$-${source_no}"
|
export destination_name="${INTERVAL}.$(${CDATE}).$$-${source_no}"
|
||||||
export destination_dir="${ddir}/${destination_name}"
|
export destination_dir="${ddir}/${destination_name}"
|
||||||
export destination_full="${destination}/${destination_name}"
|
|
||||||
|
|
||||||
_techo "Creating directory ${destination_dir} ..."
|
_techo "Creating directory ${destination_dir} ..."
|
||||||
[ "${VVERBOSE}" ] && echo "mkdir ${destination_dir}"
|
[ "${VVERBOSE}" ] && echo "mkdir ${destination_dir}"
|
||||||
|
@ -489,7 +486,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
||||||
# the rsync part
|
# the rsync part
|
||||||
#
|
#
|
||||||
_techo "Transferring files..."
|
_techo "Transferring files..."
|
||||||
rsync "$@" "${source}" "${destination_full}"; ret=$?
|
rsync "$@" "${source}" "${destination_dir}"; ret=$?
|
||||||
_techo "Finished backup (rsync return code: $ret)."
|
_techo "Finished backup (rsync return code: $ret)."
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue