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