resticprofile
resticprofile copied to clipboard
Schedules dropping out of crontab file
Hey!
Problem
Recently I've seen specific backup schedules just not being executed anymore (after working perfectly fine for a while and not touching anything).
After trying to dig into it I've seen that /etc/crontabs/root doesn't have entries for those schedules anymore.
Recreating the docker container (and thus causing it to re-create the schedules) always fixes the issue for a while - until suddenly the schedules stop working again and they're removed from the cron file.
Additionally, it seems to always be the same backup and check schedule that's dropping out of that file at some point; thor_appdata_array.
Installation
- Docker on Unraid
- image:
creativeprojects/resticprofile:0.26.0@sha256:7a127df25e59b0f6a9d918bb151b47785f1d7b4181d425ba0b35d73ddb287e01
Excerpt of the profiles file
thor_boot_drive:
inherit: default
initialize: true
verbose: true
backup:
source: "/source/boot"
schedule: "06,12,18,00:05"
schedule-permission: system
schedule-log: /logs/backup-{{ .Profile.Name }}.log
run-after: "curl <omitted>"
run-after-fail: "curl <omitted>"
check:
schedule: "*-*-1"
schedule-permission: system
schedule-log: /logs/check-{{ .Profile.Name }}.log
thor_appdata:
inherit: default
initialize: true
verbose: true
backup:
source: "/source/appdata"
schedule: "02:10"
schedule-permission: system
schedule-log: /logs/backup-{{ .Profile.Name }}.log
run-after: "curl <omitted>"
run-after-fail: "curl <omitted>"
exclude:
- "*/postgres"
- "setup"
- "postgres"
check:
schedule: "*-*-1"
schedule-permission: system
schedule-log: /logs/check-{{ .Profile.Name }}.log
thor_appdata_array:
inherit: default
initialize: true
verbose: true
backup:
source: "/source/appdata-array"
schedule: "02:30"
schedule-permission: system
schedule-log: /logs/backup-{{ .Profile.Name }}.log
run-after: "curl <omitted>"
run-after-fail: "curl <omitted>"
pack-size: 64
check:
schedule: "*-*-1"
schedule-permission: system
schedule-log: /logs/check-{{ .Profile.Name }}.log
This is most certainly weird 🤔
What's happening with the crontab file?
- Is it completely gone?
- one of the schedule disappeared from it?
- is the file empty? (does it still have the
resticprofilemarker in it?)
Hey, thanks for the quick reply! The crontab file still exists, but the two schedules related to the appdata_array schedules (backup and check) are just gone.