sync script for images
[lectures/latex.git] / cv / sync.sh
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"
+