Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
|
91089b9452 |
3 changed files with 3 additions and 19 deletions
19
ccollect
19
ccollect
|
@ -45,8 +45,8 @@ TMP="$(mktemp "/tmp/${__myname}.XXXXXX")"
|
|||
export TMP
|
||||
CONTROL_PIPE="/tmp/${__myname}-control-pipe"
|
||||
|
||||
VERSION="2.9"
|
||||
RELEASE="2020-05-25"
|
||||
VERSION="2.8"
|
||||
RELEASE="2019-11-26"
|
||||
HALF_VERSION="ccollect ${VERSION}"
|
||||
FULL_VERSION="ccollect ${VERSION} (${RELEASE})"
|
||||
|
||||
|
@ -824,11 +824,6 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
|||
rsync "$@" "${source}" "${destination_dir}"; ret=$?
|
||||
_techo "Finished backup (rsync return code: $ret)."
|
||||
|
||||
#
|
||||
# export rsync return code, might be useful in post_exec
|
||||
#
|
||||
export rsync_return_code=$ret
|
||||
|
||||
#
|
||||
# Set modification time (mtime) to current time, if sorting by mtime is enabled
|
||||
#
|
||||
|
@ -861,16 +856,6 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
|||
_techo "Warning: rsync failed with return code $ret."
|
||||
fi
|
||||
|
||||
#
|
||||
# Create symlink to newest backup
|
||||
#
|
||||
# shellcheck disable=SC2010
|
||||
latest_dir="$(ls -${TSORT}p1 "${ddir}" | grep '/$' | head -n 1)" || \
|
||||
_exit_err "Failed to list content of ${ddir}."
|
||||
|
||||
ln -snf "${ddir}${latest_dir}" "${ddir}current" || \
|
||||
_exit_err "Failed to create 'current' symlink."
|
||||
|
||||
#
|
||||
# post_exec
|
||||
#
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ccollect - Installing, Configuring and Using
|
||||
============================================
|
||||
Nico Schottelius <nico-ccollect__@__schottelius.org>
|
||||
2.9, for ccollect 2.9, Initial Version from 2006-01-13
|
||||
2.8, for ccollect 2.8, Initial Version from 2006-01-13
|
||||
:Author Initials: NS
|
||||
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
* Make rsync return code available in post_exec (Steffen Zieger)
|
Loading…
Reference in a new issue