From f19a0e993aea2799e57a0d2b68017919a1f7c617 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 30 Jun 2014 13:20:12 +0200 Subject: [PATCH] Made current directory relative. --- backmeupscotty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backmeupscotty b/backmeupscotty index 7aa814a..6affc57 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -78,7 +78,7 @@ function scottysync { if [ $? -eq 0 ]; then scottyinfo Timestamping completed backup and linking to current backup ssh $REMOTE_HOST \ - "mv $dir_incomplete $dir_timestamped && rm -f $dir_current && ln -s $dir_timestamped $dir_current" + "mv $dir_incomplete $dir_timestamped && rm -f $dir_current && ln -s $(basename $dir_timestamped) $dir_current" fi while [ $(grepbackups $2 | wc -l) -gt $ARCHIVE_KEEPNBACKUPS ]; do -- 2.39.5