borg: add subdir= config

Note that, after changing it with enableremote, syncing won't rescan
known archives in the borg repo using the changed config. Probably not a
problem?

Also used File in some places where filenames that could theoretically
start with - are passed to borg, to avoid it confusing them with
options.
This commit is contained in:
Joey Hess 2020-12-23 13:02:13 -04:00
parent 1574972ba9
commit e3d356fe84
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 51 additions and 33 deletions

View file

@ -14,6 +14,14 @@ remote:
* `borgrepo` - The location of a borg repository, eg a path, or
`user@host:path` for ssh access.
* `subdir` - The subdirectory within the borg repository where git-annex
should look for annex object files. The default is to look through the
whole borg repository.
This is useful to avoid learning about annex objects in the borg
repository that belong to unrelated git-annex repositories. It can also
make syncing faster.
## setup example
# borg init --encryption=keyfile /path/to/borgrepo