Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 9a569002 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Also dump cold data

parent 5287e692
...@@ -312,3 +312,19 @@ fi ...@@ -312,3 +312,19 @@ fi
echo "Starting dump of validated data with 4 jobs" echo "Starting dump of validated data with 4 jobs"
find $SNAPSHOT_DIR -maxdepth 3 -mindepth 3 -type d | sort | parallel --jobs 4 --max-args 1 pack_and_send {} {%} find $SNAPSHOT_DIR -maxdepth 3 -mindepth 3 -type d | sort | parallel --jobs 4 --max-args 1 pack_and_send {} {%}
echo "Dump of validated data done" echo "Dump of validated data done"
####################
#
# Start dumping cold data
#
####################
SNAPSHOT_DIR=$(ls -d ${RESIFDD_DATADIR}/cold_validated_seismic_data/.snapshot/weekly.$(date +%Y-%m-%d --date 'last sunday')_*|tail -1)
if [[ ! -d $SNAPSHOT_DIR ]]; then
echo "Error 006 Snapshot directory $SNAPSHOT_DIR does not exist"
exit 1
fi
echo "Starting dump of cold data with 4 jobs"
find $SNAPSHOT_DIR -maxdepth 3 -mindepth 3 -type d | sort | parallel --jobs 4 --max-args 1 pack_and_send {} {%}
echo "Dump of cold validated data done"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment