From ebe28b532dce3f2c712501320090dd4c01bfd34f Mon Sep 17 00:00:00 2001 From: hackbard Date: Fri, 29 Jul 2011 21:04:56 +0200 Subject: [PATCH] sync script for images --- cv/sync.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 cv/sync.sh 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" + -- 2.39.2