Skip to content
Snippets Groups Projects
Commit ebd58d8d authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- separated stages

- uses a special cache-file for each month
parent ed857cad
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment