Thank you clarifying that, would you be able to suggest whether it’s sufficient to run the check --read-data-subset n/52, and have this run each week. I figured it would read most of the data each year, excluding new data that has been added.
Or should all of the data be read say every 3 months?
I opted to check it each week for 52 weeks, as I found a simple way to work out the week number, but didn’t find anything on incrementing each week for say n/12 sections. Would appreciate any pointers on that.
FWIW, here is the bash script I use to do rolling check of all pack files over 30 days period
# failure email config
# all data is checked over CHECK_PERIOD number of days
# current day calculated as days since 1970-01-01 modulo $CHECK_PERIOD
# (date +%s returns seconds since 1970-01-01 00:00:00 UTC)
CHECK_DAY=$(( 1 + ($(date +%s) / 86400) % $CHECK_PERIOD ))
printf "\nrestic check data start $(date +%Y%m%d_%H%M%S)\n" >> $LOG
--cache-dir /var/cache/restic \
check --with-cache --read-data-subset=$CHECK_DAY/$CHECK_PERIOD >> $LOG 2>&1
if [ $? != 0 ]; then
mail -s "$NAME backup check failed" $EMAIL <<EOF