From cafcd5d4368e57f162a641ed3f4835ecb5a6d391 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 28 Feb 2002 14:09:04 +0000 Subject: Initial revision --- download-public | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 download-public (limited to 'download-public') 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/ -- cgit v1.2.3