From 55b0b416d2b5eefeb423ad0bd209d4d6e9e3c6d6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 18 Feb 2010 11:02:28 +0100 Subject: [PATCH] add ftpmirror script Signed-off-by: Nico Schottelius --- eth/ftpmirror.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 eth/ftpmirror.sh diff --git a/eth/ftpmirror.sh b/eth/ftpmirror.sh new file mode 100755 index 0000000..5cf30b7 --- /dev/null +++ b/eth/ftpmirror.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Nico Schottelius +# Mirror some ftp site and record changes +# Run before: +# cd "${dir}" && git init + +set -e + +dir=/home/users/nico/ethz/ftp +site=ftp://ftp.ethz.ch/ETH +date="$(date)" + +cd "${dir}" +wget --quiet -m ${site} +git add . && git c -m "Import of ${site} at ${date}" > /dev/null