Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedules dropping out of crontab file #372

Open
danieldietzler opened this issue Jun 26, 2024 · 2 comments
Open

Schedules dropping out of crontab file #372

danieldietzler opened this issue Jun 26, 2024 · 2 comments

Comments

@danieldietzler
Copy link

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
@creativeprojects
Copy link
Owner

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 resticprofile marker in it?)

@danieldietzler
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants