mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Use relative path insteasd of absolute when creating_latest_symlink - Closes #256
This commit is contained in:
@@ -1166,7 +1166,7 @@ move_dbbackup() {
|
||||
run_as_user mv "${TEMP_PATH}"/"${target}" "${backup_job_filesystem_path}"/"${target}"
|
||||
move_exit_code=$?
|
||||
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
|
||||
if [ -n "${backup_job_archive_time}" ] ; then
|
||||
run_as_user mkdir -p "${backup_job_filesystem_archive}"
|
||||
|
||||
Reference in New Issue
Block a user