summaryrefslogtreecommitdiff
path: root/download-public
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-02-28 14:09:04 +0000
committerJonas Smedegaard <dr@jones.dk>2002-02-28 14:09:04 +0000
commitcafcd5d4368e57f162a641ed3f4835ecb5a6d391 (patch)
tree56166fbf16289d8b388cf0f1f9b51e28c3c4bdf9 /download-public
Initial revision
Diffstat (limited to 'download-public')
-rwxr-xr-xdownload-public37
1 files changed, 37 insertions, 0 deletions
diff --git a/download-public b/download-public
new file mode 100755
index 0000000..5f0d720
--- /dev/null
+++ b/download-public
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+if [ "x$1" = "x" ]; then
+ echo "usage: $0 host"
+ exit 1
+ fi
+pwd=`pwd`
+here="$pwd"
+#there="$1:$pwd"
+there="$1::$pwd"
+#opt="-v"
+
+case $(basename $0) in
+ download*)
+ src="$there"
+ dest="$here"
+ ;;
+ upload*)
+ src="$here"
+ dest="$there"
+ ;;
+ *)
+ echo "Unknown action \"$0\""
+ exit 1
+ ;;
+esac
+case "$0" in
+ *test)
+ opt="$opt -n"
+ ;;
+ *force)
+ opt="$opt -W"
+ ;;
+esac
+
+#rsync -avrtz -e "ssh" --delete --force $opt $src/ $dest
+echo rsync -atzv --partial --delete --force $src/ $dest/