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

Question: Is it possible to add backup arguments to cron jobs? #19

Closed
zoispag opened this issue Dec 9, 2019 · 9 comments · Fixed by #38
Closed

Question: Is it possible to add backup arguments to cron jobs? #19

zoispag opened this issue Dec 9, 2019 · 9 comments · Fixed by #38

Comments

@zoispag
Copy link

zoispag commented Dec 9, 2019

I am using restiker to automate my backups. I want to exclude a few directories matching some rules.
Restic allows to exclude items listed in a file, by providing the --exclude-file argument for the backup command.

Is it possible to provide certain arguments in the backup command of the cron job?

@djmaze
Copy link
Owner

djmaze commented Dec 16, 2019

As it currently stands, you can prepend your custom parameters to the RESTIC_BACKUP_SOURCES variable. For example the following should work:

RESTIC_BACKUP_SOURCES="--exclude-file=/excludes /data"

As this is an unclean approach, we should probably add a separate variable for this in the next version.

@zoispag
Copy link
Author

zoispag commented Dec 16, 2019

Nice workaround for now! Thanks for your response! Cheers!

@stale
Copy link

stale bot commented Feb 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 14, 2020
@stale stale bot closed this as completed Feb 21, 2020
@zoispag
Copy link
Author

zoispag commented Feb 27, 2020

Shall we re-open, just not to forget to do this?

@djmaze
Copy link
Owner

djmaze commented Feb 27, 2020

Yes.

@djmaze djmaze reopened this Feb 27, 2020
@stale stale bot closed this as completed Mar 5, 2020
@zoispag
Copy link
Author

zoispag commented Mar 5, 2020

@djmaze reminder to reopen and remove the tags.

@djmaze djmaze removed the wontfix label Mar 6, 2020
@djmaze djmaze reopened this Mar 6, 2020
@stale
Copy link

stale bot commented May 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 5, 2020
@zoispag zoispag changed the title Question: Is it possible to add backup arguments to crop jobs? Question: Is it possible to add backup arguments to cron jobs? May 5, 2020
@stale stale bot removed the wontfix label May 5, 2020
@zoispag
Copy link
Author

zoispag commented May 5, 2020

Up

@ThomDietrich
Copy link
Contributor

ThomDietrich commented Jun 7, 2020

I'm also interested in the feature The issue is quickly taken care of here plus the needed bit of documentation. Would you accept a PR?

Straight forward approach would be to add RESTIC_BACKUP_ARGS, however, I feel there is an inconsistency with RESTIC_BACKUP_TAGS which is just as much an "ARG" as excludes are. Suggest to deprecate RESTIC_BACKUP_TAGS but don't have to ;)

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

Successfully merging a pull request may close this issue.

3 participants