| | 47 | == Command Line Options == |
| | 48 | |
| | 49 | This is the result of doing './update_mirror.py --help': |
| | 50 | {{{ |
| | 51 | usage: update_mirror.py [-v][-d][--mirrorroot RootDir] |
| | 52 | [--statusfile Filename][--failurefile Filename] |
| | 53 | [--pipecrash Filename][--logfile Filename] |
| | 54 | [--last LastFilesetId] |
| | 55 | |
| | 56 | where: |
| | 57 | -v requests verbose output |
| | 58 | -d requests debugging output |
| | 59 | --mirrorroot specifies the directory to store the incoming |
| | 60 | distribution (default /panstarrs/data/MIRROR) |
| | 61 | --statusfile specifies the name of the .csv file storing |
| | 62 | information about the last downloaded fileset in each |
| | 63 | distribution (default product_status.csv) |
| | 64 | --failurefile specifies the name of the .csv file storing |
| | 65 | information about filesets for which downloading has failed |
| | 66 | (default download_failures.csv) |
| | 67 | --pipecrash specifies the name of the Python .pkl file in which |
| | 68 | the contents of the working download queue are to be stored |
| | 69 | in case of an interrupt (default update_mirror_leftover_work.pkl) |
| | 70 | --logfile specifies the name of the log (default update_mirror.log) |
| | 71 | --last specifies a filesetID at which to stop downloading |
| | 72 | (default None) |
| | 73 | |
| | 74 | NOTE: if you 'kill' this script (with SIGTERM, the default) it will |
| | 75 | attempt to clean up and take good notes before it dies. This can |
| | 76 | take a while as the worker threads finish downloading. If you must |
| | 77 | kill it immediately, use 'kill -9'. |
| | 78 | |
| | 79 | }}} |