Skip to content

Commit

Permalink
back up eeg qc scores via cron
Browse files Browse the repository at this point in the history
  • Loading branch information
tashrifbillah committed Oct 17, 2022
1 parent 429ca29 commit 219799b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backup_scores.cron
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# cron job at every 3 am
# 3 * * * * ~/eeg-qc-dash/backup_scores.cron

datestamp=$(date +"%Y%m%d")

for d in /data/predict/data_from_nda/ /data/predict/kcho/flow_test/spero
do
cd $d
gzip -c .scores.pkl > .scores.pkl.${datestamp}.gz
done

0 comments on commit 219799b

Please sign in to comment.