IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 3 and Version 4 of AlternateDistClientQuickstart


Ignore:
Timestamp:
Feb 26, 2010, 1:23:10 PM (16 years ago)
Author:
welling
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AlternateDistClientQuickstart

    v3 v4  
    55To get started using update-mirror, take the following steps:
    66
    7 * Save update_mirror.py and parse_config.py somewhere in your PATH.  I keep
     7 * Save update_mirror.py and parse_config.py somewhere in your PATH.  I keep
    88  my copy in ~/bin, since I added my ~/bin directory to my PATH long ago.
    99
    10 * Edit update_mirror.py to set two things:
     10 * Edit update_mirror.py to set two things:
    1111
    1212   1. Change mirrorRootDir to be the path to the directory where
     
    1616      want ps1-md; if you only want medium deep catalogs you want ps1-md-cat.
    1717
    18 * Run it.  A good format for the command is:
    19 
     18 * Run it.  A good format for the command is:
     19{{{
    2020   nice nohup update_mirror.py >& update_mirror_stdout.log &
    21 
     21}}}
    2222That will run update_mirror.py in such a way that you can log out and
    2323it will keep going.  If you like, you can watch its progress with:
    24 
     24{{{
    2525   tail -f update_mirror.log
    26 
     26}}}
    2727Note that you are not watching update_mirror_stdout.log- that file is
    2828only there to catch unexpected error messages.
     
    3636however.  There are command line options to update_mirror to let you
    3737do that.  Some examples are below, but you can see all the options if you do:
    38 
     38{{{
    3939   update_mirror.py --help
    40 
     40}}}
    4141To understand how to select datasets you need to understand the keys
    4242that specify datasets.  The easiest way to do that is to look at the
     
    5151Selecting a particular skycell is a special case; see below.
    5252
    53 -To get only stacks, do:
    54 
     53 * To get only stacks, do:
     54{{{
    5555  update_mirror.py --select_stage stack
    56 
    57 -To select only MD04, do:
    58 
     56}}}
     57 * To select only MD04, do:
     58{{{
    5959  update_mirror.py --select_datagroup 'MD04.*'
    60 
    61 -You can combine terms.  For example, to select only stack-stack diffs
    62  done with the g.00000 filter for MD06, use:
    63 
     60}}}
     61 * You can combine terms.  For example, to select only stack-stack diffs
     62   done with the g.00000 filter for MD06, use:
     63{{{
    6464  update_mirror.py --select_datagroup 'MD06.*' --select_filter g.00000
    6565           --select_stage SSdiff
    66 
     66}}}
    6767Caution: the rules specifying what words mean what in the different
    6868columns of the datastore table seem to change occasionally, so it's
     
    7575the actual files that get downloaded for that fileset.  At least one
    7676of them will be a .tgz file, with a name like:
    77 
     77{{{
    7878  MD04.skycell.068.stk.52993.skycell.068.tgz
    79 
     79}}}
    8080The --select_tarball option to update_mirror lets you specify a
    8181regular expression for the tarball name, so that option can be used to
     
    8484file.
    8585
    86   For example, to select only warps from MD04 for skycell 040, do:
    87 
     86For example, to select only warps from MD04 for skycell 040, do:
     87{{{
    8888  update_mirror.py --select_stage warp --select_datagroup 'MD04.*'
    8989          --select_tarball '.*skycell\.040\.tgz'
    90 
     90}}}
    9191This can get tedius if you actually want several skycells, so here is
    9292a useful trick with regular expressions.  If you want skycells 038,
    9393053, 061 and 074 from that stage and group, try:
    94 
     94{{{
    9595  update_mirror.py --select_stage warp --select_datagroup 'MD04.*'
    9696          --select_tarball '.*skycell\.((038)|(053)|(061)|(074))\.tgz'
     97}}}