nils-werner / crestic

Configurable Restic Wrapper
https://nils-werner.github.io/crestic/
MIT License
107 stars 9 forks source link

Set default configuration file #10

Closed dimejo closed 4 years ago

dimejo commented 4 years ago

Setting/Importing environment variables within crontabs isn't always ideal. It would be great if crestic would use a default location if no environment variable is set.

nils-werner commented 4 years ago

I agree, and I was thinking about this myself.

However, as restic is platform independent, the solution would need to be platform independent, too. At that point, either complexity of this script explodes, or I would have to depend on a library like appdirs, and I am not happy with either...

Any recommendations?

dimejo commented 4 years ago

I'm not a developer, therefor I won't be of much help but appdirs seems like a good choice.

nils-werner commented 4 years ago

I've pushed a proof of concept into the appdirs branch, have a look!

dimejo commented 4 years ago

Thanks for the fast addition. It's working for me!