Commit 018cd987 authored by ungleich@saz.sh's avatar ungleich@saz.sh

Add 'current' symlink to backup destinations

parent 7a7dec77
Pipeline #1550 failed with stage
in 29 seconds
......@@ -860,6 +860,15 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
else
_techo "Warning: rsync failed with return code $ret."
fi
#
# Create symlink to newest backup
#
latest_dir="$(ls -td ${ddir}*/ | head -1)" || \
_exit_err "Failed to list content of ${ddir}."
ln -snf "${latest_dir}" "${ddir}current" || \
_exit_err "Failed to create 'current' symlink."
#
# post_exec
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment