diff --git a/run_deepfixity.sh b/run_deepfixity.sh index 1c1bc93feec50d834b912da2b5c696683bd2e9c9..3ffb72e78d87986e7e9ab3c77459430e70f4cc64 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