From ebd58d8d962441a8c7681e56a13e9e53012f0548 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <art1@andreas-romeyke.de> Date: Fri, 10 Dec 2021 15:59:39 +0100 Subject: [PATCH] - separated stages - uses a special cache-file for each month --- run_deepfixity.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/run_deepfixity.sh b/run_deepfixity.sh index 1c1bc93..3ffb72e 100644 --- a/run_deepfixity.sh +++ b/run_deepfixity.sh @@ -9,17 +9,32 @@ function error () { echo "------" | tee -a "$ERRLOG" } +function scan () { + ERRLOG="$1" + perl -I /home/aromeyke/perl5/lib/perl5/ /root/deep_fixitycheck.pl \ + --map_path=/mnt/rosetta-prod_2021_deepfixity_tmp \ + --search_dir="/mnt/rosetta-prod_2021_deepfixity_tmp/permanent_storage/normal/2021/${i}" \ + --report="report_fixity_year2021_${i}_scan_gestartet_${TIME}.txt" \ + --cache="deepfixity_cache_year2021_${i}.cache" \ + --stage 1 + 2>> "$ERRLOG" + } + function fixity () { ERRLOG="$1" perl -I /home/aromeyke/perl5/lib/perl5/ /root/deep_fixitycheck.pl \ --map_path=/mnt/rosetta-prod_2021_deepfixity_tmp \ --search_dir="/mnt/rosetta-prod_2021_deepfixity_tmp/permanent_storage/normal/2021/${i}" \ - --report="report_fixity_year2021_${i}_gestartet_${TIME}.txt" 2>> "$ERRLOG" + --report="report_fixity_year2021_${i}_fixity_gestartet_${TIME}.txt" \ + --cache="deepfixity_cache_year2021_${i}.cache" \ + --stage 2 + 2>> "$ERRLOG" } # 04 already processed for i in 02 03 05 06 07 08 09 10 11; do TIME=$(date +"%F_%X") ERRLOG="error_report_year2021_${i}_${TIME}.txt" + scan "ERRLOG" || error "$ERRLOG" fixity "$ERRLOG" || error "$ERRLOG" done -- GitLab