resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

version 1 of groups no longer work with schedule in resticprofile 0.29.0

Open stucki-stuck opened this issue 1 year ago • 2 comments

Hello

This code worked in version 0.28.1. It doesn't work anymore in 0.29.0:

version: "1"

groups:
  all-backups:
    - nexus
...

the error in version 0.29.0 :

resticprofile --name all-backups schedule
2024/12/02 14:16:01 using configuration file: /etc/resticprofile/profiles.yaml
2024/12/02 14:16:01 no schedule found for profile 'all-backups'

this example is still in the doc :

# a group is a profile that will call all profiles one by one
groups:
  # when starting a backup on profile "full-backup",
  # it will run the "root" and "src" backup profiles
  full-backup:
    - root
    - src

It should be clarified whether this is a bug or a new feature in the way groups are written, in which case the documentation should be updated with the new procedure.

stucki-stuck avatar Dec 02 '24 14:12 stucki-stuck

Yes I see.

Previously it was loading the profile names of the group and scheduling the profiles independently : but actually this is kind of counter-intuitive because in v2 it's scheduling the group itself and not the profiles.

I could put the feature back but I think it could be a bit misleading?

schedule config v1 config v2
group profile schedules included in groups group schedules
profile profile schedules profile schedules

creativeprojects avatar Dec 12 '24 22:12 creativeprojects

Sorry for the late reply.

For me, the implementation doesn't matter as long as there is documentation to explain it. I find it very useful to be able to schedule several projects in a single command. I would like to keep this behavior even if the command or configuration must be changed.

stucki-stuck avatar Jan 10 '25 09:01 stucki-stuck