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

Scheduling a group has unexpected results #381

Open
WebSpider opened this issue Jul 5, 2024 · 2 comments
Open

Scheduling a group has unexpected results #381

WebSpider opened this issue Jul 5, 2024 · 2 comments

Comments

@WebSpider
Copy link

I realise the v2 config format being not-standard yet may have something to do with this, but I cannot seem to schedule a group backup/prune. Maybe I'm doing something wrong, maybe not. I'm looking to use this feature so the two jobs run in sequence: First make a backup of the DB, then make a backup of the files for the app, right after.

version: 2

groups:
  mygroup:
    description: Database and file backup of App
    profiles:
      - app-database
      - app-files
    schedules:
      backup:
        at: "05:00"
        schedule-permission: user
      prune:
        at: monthly
        schedule-permission: user
profiles:
  default:
    <all my defaults go here>
  app-database:
    inherit: default
    backup:
      run-before: my-db-dump-script.sh
      run-after: my-db-dump-cleanup-script.sh
      source: my-db-dump-dir
    prune:
      max-unused: "3%"
  app-files:
    inherit: default
    exclude-file: files.exclude
    source:
      - /path/1
      - /path/2

When I then inpect what's going on, when I use resticprofile profiles it shows the 3 profiles and the group, but I cannot show, or status the group, because it is not a profile, and I cannot schedule the group, because the group has a schedule connected to it, and not the profiles.

When I move the schedule to the profiles, it works. But then I need to time how long it takes for my DB dump to complete, instead of chaining the profiles together.

@creativeprojects
Copy link
Owner

This is right, scheduling on v2 is not finished yet.
That's the last part to do, we're almost there 😉

In the meantime, if you use resticprofile locks with a long waiting time, you should be able to do both backup without breaking the restic repository

@WebSpider
Copy link
Author

You mean use the same lockfile for both backups?
That might be a nice solution indeed. I'll try that!

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