]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - bin/srsync-incremental
zsh/rc: Replace $use_tmux with $use_multiplexer.
[config/dotfiles.git] / bin / srsync-incremental
index a76bf728ec76992f06b2576500ae61494ccda9d3..aa2c977c056a2898c7ad0c7ac90acd947c6c202f 100755 (executable)
@@ -33,7 +33,8 @@ shift
 
 dest=`echo backup-*`
 if [ "x$dest" != 'xbackup-*' ]; then
-    dest="`pwd`/`ls -1d backup-* | tail -n1`"
+    # -F and grep is used to list only directories, zsh's *(/) would be great.
+    dest="`pwd`/`ls -1dF backup-* | grep / | tail -n1`"
 fi
 
 target=backup-`date '+%Y-%m-%d-%H-%M-%S'`
@@ -45,7 +46,7 @@ fi
 
 mkdir current
 rsync \
-    --verbose --human-readable \
+    --verbose --itemize-changes --human-readable \
     --archive --hard-links --numeric-ids --one-file-system \
     --link-dest="$dest" \
     "$@" current \