Rev 12003 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12003 | Rev 15986 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | # |
2 | # |
3 | # This script is used to mirror wims source and module distribution |
3 | # This script is used to mirror wims source and module distribution |
4 | # from wims. |
4 | # from wims.univ-cotedazur.fr. |
5 | 5 | ||
6 | # This line makes the mirroring only weekly (every sunday morning). |
6 | # This line makes the mirroring only weekly (every sunday morning). |
7 | # Comment out the line to make daily mirroring. |
7 | # Comment out the line to make daily mirroring. |
8 | [ `date '+%w'` = "0" ] || exit |
8 | [ `date '+%w'` = "0" ] || exit |
9 | 9 | ||
10 | original=https://wims. |
10 | original=https://wims.univ-cotedazur.fr/download/ |
11 | cd `dirname $0/..` |
11 | cd `dirname $0/..` |
12 | wimsbase=`pwd` |
12 | wimsbase=`pwd` |
13 | cd public_html |
13 | cd public_html |
14 | 14 | ||
15 | mkdir -p download |
15 | mkdir -p download |
16 | 16 | ||
17 | wget -m -np -t1 -T60 -w2 -nH --progress=dot \ |
17 | wget -m -np -t1 -T60 -w2 -nH --progress=dot \ |
18 | -Xdownload/wims/old \ |
18 | -Xdownload/wims/old \ |
19 | https://wims. |
19 | https://wims.univ-cotedazur.fr/download/ >$wimsbase/tmp/wget.log 2>$wimsbase/tmp/wget.err |
20 | 20 |