Skip to content

Contains wrapper scripts for backing up DESI data using the hpsspy package.

License

Notifications You must be signed in to change notification settings

desihub/desiBackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desiBackup

GitHub Actions CI Status

Introduction

This product contains wrapper scripts on the HPSSPy package.

Configuring desiBackup

desiBackup configuration is provided by the file etc/desi.json. This file is fully described in the HPSSPy configuration document. Please be sure to read that document before editing the configuration file. If you need additional help with the configuration, please contact the DESI Data Systems mailing list.

Using desiBackup

This package provides the command-line script desiBackup.sh that wrappers the HPSSPy command missing_from_hpss. The backup applies to and is intended for entire top-level directory trees. For example, to perform a backup of spectro/redux/oak1, one first makes sure that the configuration is set up to properly map to an HPSS file (see above), then run:

desiBackup.sh spectro

For additional detail or debugging you can add the -v option. The backup can be tested without damaging anything by using the -t option.

Testing desiBackup

Currently, desiBackup is tested by ensuring that the file etc/desi.json is valid. Specifically this command is run:

python -c 'import json; j = open("etc/desi.json"); data = json.load(j); j.close()'

If the file is valid, this command will produce no output. Invalid files will raise an exception.

Change Log

0.5.1 (unreleased)

  • No changes yet.

0.5.0 (2023-07-31)

  • Add configuration describing DR1 reductions, guadalupe, iron; backup status jobs are now submitted as batch jobs (PR #30).

0.4.0 (2023-01-18)

  • Update scripts for submitting specprod backup jobs; general refresh of configuration (PR #28).

0.3.1 (2022-06-01)

  • Updates for fuji and guadalupe (PR #27).

0.3.0 (2021-09-10)

  • Add recent spectroscopic reductions: andes, blanc, etc. (PR #24).
  • Migrated to GitHub Actions for testing.
  • Rename top-level release/ to public/; other minor configuration changes (PR #23).
  • Update configuration for mocks/lya_forest/london, other minor changes to other top-level directories (PR #20).
  • Update to new /global/cfs filesystem.
  • Other miscellaneous updates (PR #21).

0.2.1 (2019-08-20)

  • Allow status comments to be concatenated.
  • Add configuration for cmx/ directory (PR #17).
  • Additional configuration for datachallenge/ directory (PR #18).
  • Backups of 'london' mocks, mocks/lya_forest/london/, support for HPSSPy version 0.5.1 (PR #19).

0.2.0 (2019-05-20)

This is primarily a reference tag.

  • Compatibility with HPSSPy version 0.5.0 (PR #11).
  • Add configuration or at least placeholders for most of the DESI data tree, and add monitoring script (PR #8).
  • Added Travis test.

0.1.0 (2017-01-23)

  • Initial reference tag. Should be used with HPSSPy version 0.3.0.

License

desiBackup is free software licensed under a 3-clause BSD-style license. For details see the LICENSE.rst file.

About

Contains wrapper scripts for backing up DESI data using the hpsspy package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published