From: hackbard Date: Fri, 29 Jul 2011 19:04:56 +0000 (+0200) Subject: sync script for images X-Git-Url: https://www.hackdaworld.org/gitweb/?p=lectures%2Flatex.git;a=commitdiff_plain;h=ebe28b532dce3f2c712501320090dd4c01bfd34f sync script for images --- diff --git a/cv/sync.sh b/cv/sync.sh new file mode 100755 index 0000000..a61710b --- /dev/null +++ b/cv/sync.sh @@ -0,0 +1,16 @@ +RSYNC="rsync -avz -u" + +if [ "`hostname`" != "sage" ]; then + SRC="sage.physik.uni-augsburg.de:projects/latex/cv" +fi + +$RSYNC -e "ssh -p 3389" $SRC/img/ ./img/ + +if [ "$2" = "r" ]; then + + $RSYNC -e "ssh -p 3389" ./img/ $SRC/img/ + +fi + +echo "done" +