Make a .Group.Name variable available in the profiles section #457
remyzandwijk
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
I suppose when using inheritance you would have to duplicate the shared profiles, resulting in specific profiles for each group. I need to think about the implications of adding a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there. First of all, I have been using Restic for a couple of years now and I wrote a (very feature-incomplete) Python wrapper around it. While thinking about a rewrite of that wrapper, I came across Restic Profile and it is exactly what I need. So, thanks for writing it!
As a newcomer, I am fiddling around with trying several configurations. One of the things that came to mind is "I could really use the
.Group.Namevariable to be available (in profiles)". The use case of the.Group.Namevariable would be to load the repository name and key for example, depending on the name of the group.For example, I have a couple of profiles which should end-up in two different repositories:
So, when running
resticprofile group-a.backupfor example, the group-a.repo and group-a.key files would be used. And whenresticprofile group-b.backupwould run, the group-b.repo and group-b.key files would be used.Would having the
.Group.Namevariable available make sense?I was trying to accomplish the above by using templates and inherritance, but I just cannot see how to do it. A workaround would be to supply an environment variable on the command line when starting resticprofile, but where is the fun in that, right? And I wonder if that would work out with adding schedules.
My concrete questions are:
.Group.Namevariable be made available in the profiles section?Beta Was this translation helpful? Give feedback.
All reactions