add ftpmirror script
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
b8fba1aabe
commit
55b0b416d2
1 changed files with 15 additions and 0 deletions
15
eth/ftpmirror.sh
Executable file
15
eth/ftpmirror.sh
Executable file
|
@ -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
|
Loading…
Add table
Reference in a new issue