]> hackdaworld.org Git - lectures/latex.git/commitdiff
sync script for images
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Fri, 29 Jul 2011 19:04:56 +0000 (21:04 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Fri, 29 Jul 2011 19:04:56 +0000 (21:04 +0200)
cv/sync.sh [new file with mode: 0755]

diff --git a/cv/sync.sh b/cv/sync.sh
new file mode 100755 (executable)
index 0000000..a61710b
--- /dev/null
@@ -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"
+