]> git.treefish.org Git - backmeupscotty.git/commitdiff
Made current directory relative.
authorAlexander Schmidt <alex@treefish.org>
Mon, 30 Jun 2014 11:20:12 +0000 (13:20 +0200)
committerAlexander Schmidt <alex@treefish.org>
Mon, 30 Jun 2014 11:20:12 +0000 (13:20 +0200)
backmeupscotty

index 7aa814abdf69de8733c192d6a954c3fd214612db..6affc578cc58f4d648e4130710901c2a721b204a 100644 (file)
@@ -78,7 +78,7 @@ function scottysync {
     if [ $? -eq 0 ]; then
        scottyinfo Timestamping completed backup and linking to current backup
        ssh $REMOTE_HOST \
     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
     fi
 
     while [ $(grepbackups $2 | wc -l) -gt $ARCHIVE_KEEPNBACKUPS ]; do