X-Git-Url: https://git.llucax.com/software/bacap.git/blobdiff_plain/14c2aeec3b5320bef0c6f84cd548ad902f84f27a..5b3f492851eb2f1335f3d2654cce156aab7b45a8:/bacap diff --git a/bacap b/bacap index 2257848..5b74c5e 100755 --- a/bacap +++ b/bacap @@ -103,6 +103,7 @@ do source "$host_path/bacaprc" 2>/dev/null host=`basename "$host_path"` host_backup_path="$BACKUP_PATH/$host" + mkdir -p $host_backup_path dst="$BACKUP_PATH/$host/$date" src=`cat "$host_path/paths"` [ "$host" != "$LOCALHOST" ] && @@ -134,7 +135,7 @@ do --link-dest="$current_dir" $src "$dst/" || ret=$(($ret+1)) plog "Moving current..." - $run rm $V "$current_link" || + $run rm -f $V "$current_link" || ret=$(($ret+1)) $run ln -s $V "$date" "$current_link" || ret=$(($ret+1))