From: Simon Ruderich Date: Fri, 2 Oct 2015 02:55:33 +0000 (+0200) Subject: bin/srsync-incremental: fix initial backup X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=097c4431b2b95487031859376d3c30657edeb04a;p=config%2Fdotfiles.git bin/srsync-incremental: fix initial backup --- diff --git a/bin/srsync-incremental b/bin/srsync-incremental index 0ae1e56..9d800b9 100755 --- a/bin/srsync-incremental +++ b/bin/srsync-incremental @@ -35,6 +35,7 @@ cd "$1" shift # Get absolute path to last backup directory. +dest=./ for x in backup-*; do test -d "$x" || continue dest="../$x" # relative to destination directory