Use relative path insteasd of absolute when creating_latest_symlink - Closes #256

This commit is contained in:
Dave Conroy
2023-11-03 15:32:33 -07:00
parent a10eb1dfba
commit 7d77266d2a

View File

@@ -1166,7 +1166,7 @@ move_dbbackup() {
run_as_user mv "${TEMP_PATH}"/"${target}" "${backup_job_filesystem_path}"/"${target}" run_as_user mv "${TEMP_PATH}"/"${target}" "${backup_job_filesystem_path}"/"${target}"
move_exit_code=$? move_exit_code=$?
if var_true "${backup_job_create_latest_symlink}" ; then if var_true "${backup_job_create_latest_symlink}" ; then
run_as_user ln -sf "${backup_job_filesystem_path}"/"${target}" "${backup_job_filesystem_path}"/latest-"${ltarget}" run_as_user ln -sfr "${backup_job_filesystem_path}"/"${target}" "${backup_job_filesystem_path}"/latest-"${ltarget}"
fi fi
if [ -n "${backup_job_archive_time}" ] ; then if [ -n "${backup_job_archive_time}" ] ; then
run_as_user mkdir -p "${backup_job_filesystem_archive}" run_as_user mkdir -p "${backup_job_filesystem_archive}"