I’m new to restic and just started doing my first backups.
To configure my default backup I use two files to hide passwords and passphrases from the environment and some environment variables:
But also some command line arguments:
restic backup --iexclude-file ~/.restic/excludes --exclude-caches /home
This means that my restic configuration distributed in several places: ~/.restic/, ~/.profile and ~/.zhistfile.
It works kind of fine, but I don’t exactly like a configuration spread across so many places.
One annoying consequence is that I need to
unset RESTIC_REPOSITORY_FILE when I want to use an alternate repository. Otherwise:
Fatal: Options -r and --repository-file are mutually exclusive, please specify only one
In my mind, the -r option should just overrule the environment.
But now my question: How do you guys deal with configuring restic?