Simplify symlink creation.
This commit is contained in:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user