Skip to content

Commit

Permalink
add config for edr and dr1
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Aug 5, 2024
1 parent 47db372 commit ad179c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion bin/backupStatus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ sections=$(grep -E '^ "[^"]+":\{' ${DESIBACKUP}/etc/desi.json | \
sed -r 's/^ "([^"]+)":\{/\1/' | \
grep -v config)
comments=$(cat <<COMMENTS
external:This directory provides links to non-DESI data sets. The actual data are stored elsewhere.
gsharing:Share data via Globus. The actual data are stored elsewhere.
software:Most DESI software is stored elsewhere, and the ultimate backups are the various git and svn repositories.
target:The most important targeting data is backed up with the <code>public/ets/</code> data.
Expand All @@ -128,7 +129,8 @@ COMMENTS
for d in ${sections}; do
c=$(grep "${d}:" <<<"${comments}" | cut -d: -f2)
j=0
if [[ "${d}" == "gsharing" || \
if [[ "${d}" == "external" || \
"${d}" == "gsharing" || \
"${d}" == "software" || \
"${d}" == "users" || \
"${d}" == "vac" || \
Expand Down
15 changes: 11 additions & 4 deletions etc/desi.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,11 @@
"svn_export_focalplane_12302018":{},
"umdata":{}
},
"external":{
"__exclude__":["README.txt"]
},
"gsharing":{
"__exclude__":[]
"__exclude__":["README"]
},
"metadata":{
"__exclude__":["README.html","scan_README.txt"],
Expand Down Expand Up @@ -348,13 +351,17 @@
"doc/.*$":"EXCLUDE"
},
"dr1":{
"dr1/[^/]+$":"dr1_files.tar",
"dr1/spectro/data/([0-9]+)/.*$":"dr1/spectro/data/desi_spectro_data_\\1.tar",
"dr1/spectro/desi_spectro_calib/([v0-9.]+)/.*$":"dr1/spectro/desi_spectro_calib/dr1_spectro_desi_spectro_calib_\\1.tar",
"dr1/spectro/redux/(guadalupe|iron)/[^/]+$":"dr1/spectro/redux/\\1/redux_\\1_files.tar",
"dr1/spectro/redux/(guadalupe|iron)/(calibnight|dashboard|exposure_tables|processing_tables|run|zcatalog)/.*$":"dr1/spectro/redux/\\1/redux_\\1_\\2.tar",
"dr1/spectro/redux/(guadalupe|iron)/(exposures|preproc)/([0-9]+)/.*$":"dr1/spectro/redux/\\1/\\2/redux_\\1_\\2_\\3.tar",
"dr1/spectro/redux/(guadalupe|iron)/healpix/[^/]+$":"dr1/spectro/redux/\\1/healpix/redux_\\1_healpix_files.tar",
"dr1/spectro/redux/(guadalupe|iron)/healpix/(cmx|main|special|sv1|sv2|sv3)/(backup|bright|dark|other)/([0-9]+)/.*$":"dr1/spectro/redux/\\1/healpix/\\2/\\3/redux_\\1_healpix_\\2_\\3_\\4.tar",
"dr1/spectro/redux/(guadalupe|iron)/tiles/(1x_depth|4x_depth|lowspeed|cumulative|perexp|pernight)/([0-9]+)/.*$":"dr1/spectro/redux/\\1/tiles/\\2/redux_\\1_tiles_\\2_\\3.tar",
"dr1/spectro/templates/basis_templates/([v0-9.]+)/.*$":"dr1/spectro/templates/dr1_spectro_templates_basis_templates_\\1.tar",
"dr1/survey/(GFA|ops)/.*$":"dr1/survey/dr1_survey_\\1.tar",
"dr1/target/fiberassign/tiles/tags/([0-9.]+)/[^/]+$":"dr1/fiberassign/tiles/tags/\\1/dr1_fiberassign_tiles_tags_\\1_files.tar",
"dr1/target/fiberassign/tiles/tags/([0-9.]+)/([0-9]{3})/.*$":"dr1/fiberassign/tiles/tags/\\1/dr1_fiberassign_tiles_tags_\\1_\\2.tar",
"dr1/vac/dr1/(fastspecfit|lsdr9-photometry)/(guadalupe|iron)/(v[0-9.]+)/.*$":"dr1/vac/dr1/\\1/\\2/dr1_vac_dr1_\\1_\\2_\\3.tar"
Expand All @@ -375,8 +382,8 @@
"edr/target/fiberassign/tiles/tags/([0-9.]+)/[^/]+$":"edr/fiberassign/tiles/tags/\\1/edr_fiberassign_tiles_tags_\\1_files.tar",
"edr/target/fiberassign/tiles/tags/([0-9.]+)/([0-9]{3})/.*$":"edr/fiberassign/tiles/tags/\\1/edr_fiberassign_tiles_tags_\\1_\\2.tar",
"edr/target/(masks|skybricks|skyhealpixs)/([0-9dev.]+)/.*$":"edr/target/\\1/edr_target_\\1_\\2.tar",
"edr/vac/edr/(bal|lsdr9-photometry|lya|mws|zcat)/(fuji)/(v[0-9.]+)/.*$":"edr/vac/edr/edr_vac_edr_\\1_\\2_\\3.tar",
"edr/vac/edr/(lss|mgii-absorber|provabgs|vi)/(v[0-9.]+)/.*$":"edr/vac/edr/edr_vac_edr_\\1_\\2.tar"
"edr/vac/edr/(bal|cigale|dla|fastspecfit|lsdr9-photometry|lya|mws|zcat)/(fuji)/(v[0-9.]+)/.*$":"edr/vac/edr/edr_vac_edr_\\1_\\2_\\3.tar",
"edr/vac/edr/(epoviz|lss|mgii-absorber|provabgs|qso|stellar-mass-emline|uchuu|vi)/(v[0-9.]+)/.*$":"edr/vac/edr/edr_vac_edr_\\1_\\2.tar"
},
"epo":{
},
Expand All @@ -395,7 +402,7 @@
}
},
"science":{
"__exclude__":["README"],
"__exclude__":[],
"Y1KP":{},
"bgs":{},
"c3":{},
Expand Down

0 comments on commit ad179c7

Please sign in to comment.