diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index 05c8fa8..5d3439e 100644 --- a/rsync_tmbackup.sh +++ b/rsync_tmbackup.sh @@ -280,10 +280,8 @@ while [ "1" ]; do # Add symlink to last successful backup # ----------------------------------------------------------------------------- - cd "$DEST_FOLDER" - rm -f -- "latest" - ln -s -- $(basename -- "$DEST") "latest" - cd - + rm -rf -- "$DEST_FOLDER/latest" + ln -vs -- "$NOW" "$DEST_FOLDER/latest" rm -- "$INPROGRESS_FILE" # TODO: grep for "^rsync error:.*$" in log