]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/blob - fetch-scripts/torproject
Revert "Including non-full images for debian-cd, or else no .iso file is mirrored."
[sipb-mirrors.git] / fetch-scripts / torproject
1 #!/bin/sh
2
3 # Consult the official Tor Project mirroring manual at
4 # https://www.torproject.org/docs/running-a-mirror.html.en
5
6 set -x
7 set -v
8 set -e
9 set -u
10
11 RSYNCSOURCE=rsync://rsync.torproject.org
12 RSYNCWEBSOURCE=${RSYNCSOURCE}/website-mirror/
13 RSYNCDISTSOURCE=${RSYNCSOURCE}/dist-mirror/
14 BASEWEBDIR=${MIRRORDIR}/torproject
15 BASEDISTDIR=${BASEWEBDIR}/dist
16
17 RSYNC_OPTS="--archive --delete"
18 OTHER_OPTS="--stats --verbose"
19
20 rsync ${RSYNC_OPTS} ${OTHER_OPTS} \
21       --exclude dist \
22       ${RSYNCWEBSOURCE} ${BASEWEBDIR}
23
24 rsync ${RSYNC_OPTS} ${OTHER_OPTS} \
25       ${RSYNCDISTSOURCE} ${BASEDISTDIR}