Simplify symlink creation.

This commit is contained in:
Robert Bruce Park 2013-11-26 12:48:49 -08:00
parent 4da7172099
commit c3f15c7834

View file

@ -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