2010-02-18 10:02:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Nico Schottelius
|
|
|
|
# Mirror some ftp site and record changes
|
|
|
|
# Run before:
|
|
|
|
# cd "${dir}" && git init
|
|
|
|
|
|
|
|
set -e
|
2010-04-15 10:21:43 +00:00
|
|
|
set -x
|
2010-02-18 10:02:28 +00:00
|
|
|
|
|
|
|
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
|