make rsync return code available in post_exec
This commit is contained in:
parent
109b70ea76
commit
a261ef841e
1 changed files with 5 additions and 0 deletions
5
ccollect
5
ccollect
|
@ -824,6 +824,11 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
||||||
rsync "$@" "${source}" "${destination_dir}"; ret=$?
|
rsync "$@" "${source}" "${destination_dir}"; ret=$?
|
||||||
_techo "Finished backup (rsync return code: $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
|
# Set modification time (mtime) to current time, if sorting by mtime is enabled
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue