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

Suggestion: don't require 'from' key in locations that use include arguments. #372

Open
Bostrolicious opened this issue Apr 29, 2024 · 0 comments

Comments

@Bostrolicious
Copy link

Is your feature request related to a problem? Please describe.

Sometimes I would like to specify files to backup with include arguments (e.g. --files-from) without using the from key, which is currently required. An example use case is using find in a hook to generate a list of files to backup that match a certain pattern, without having a previously known path that fits in from - for instance, all docker-compose.yml files in all subdirectories of a given directory, but nothing else. Restic's documentation on include arguments has some examples of exactly what I would like to do.

Describe the solution you'd like

Perhaps only require the from key when include arguments aren't used? It's perfectly understandable if this adds too much complexity to validating the config. I can always just put som random file in from as a workaround.

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

1 participant