Skip to content

Commit

Permalink
update backup batch job configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 13, 2024
1 parent 4f5a806 commit d63f014
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bin/submit_backup_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ for section in cmx cosmosim datachallenge engineering metadata mocks protodesi p
#SBATCH --output=${job_dir}/%x-%j.log
#SBATCH --open-mode=append
#SBATCH --mail-type=end,fail
#SBATCH --mail-user=[email protected]
#SBATCH --mail-user=[email protected]
source /global/common/software/desi/desi_environment.sh ${software}
module load desiBackup/main
# cache=\${DESI_ROOT}/users/\${USER}/backups
cache=\${DESI_ROOT}/metadata/backups
[[ -d \${cache} ]] || mkdir -p \${cache}
missing_from_hpss ${verbose} -c \${cache} -D -H \${DESIBACKUP}/etc/desi.json ${section}
[[ \$? == 0 ]] && cp -a ${job_dir}/${job_name}-\${SLURM_JOB_ID}.log \${cache}
missing_from_hpss ${verbose} --cache-dir=\${cache} --overwrite-hpss \${DESIBACKUP}/etc/desi.json ${section}
cp -a ${job_dir}/${job_name}-\${SLURM_JOB_ID}.log \${cache}
BATCHJOB
)
${verbMode} && echo "${job}"
Expand Down Expand Up @@ -98,10 +96,9 @@ job=$(cat <<BATCHJOB
#SBATCH --output=${job_dir}/%x-%j.log
#SBATCH --open-mode=append
#SBATCH --mail-type=end,fail
#SBATCH --mail-user=[email protected]
#SBATCH --mail-user=[email protected]
source /global/common/software/desi/desi_environment.sh ${software}
module load desiBackup/main
# cache=\${DESI_ROOT}/users/\${USER}/backups
cache=\${DESI_ROOT}/metadata/backups
backupStatus.sh ${verbose} -c \${cache} ${job_id_map}
BATCHJOB
Expand Down

0 comments on commit d63f014

Please sign in to comment.