2020-12-18 15:06:23 +00:00
|
|
|
This special remote type accesses annexed files stored in a
|
2020-12-17 17:12:35 +00:00
|
|
|
[borg](https://www.borgbackup.org/) repository.
|
|
|
|
|
2020-12-18 15:06:23 +00:00
|
|
|
Unlike most special remotes, git-annex cannot be used to store annexed
|
|
|
|
files in this special remote. You store files by using borg as usual, to
|
|
|
|
back up the git-annex repository. Then `git-annex sync` will learn about
|
|
|
|
the annexed files that are stored in the borg repository.
|
2020-12-17 17:12:35 +00:00
|
|
|
|
|
|
|
## configuration
|
|
|
|
|
|
|
|
These parameters can be passed to `git annex initremote` to configure the
|
|
|
|
remote:
|
|
|
|
|
2020-12-18 20:03:51 +00:00
|
|
|
* `borgrepo` - The location of a borg repository, eg a path, or
|
2020-12-17 17:12:35 +00:00
|
|
|
`user@host:path` for ssh access.
|
|
|
|
|
2020-12-18 15:06:23 +00:00
|
|
|
* `scan` - The path, within the borg repository, to scan for
|
|
|
|
annex object files. This can be the path to a git-annex repository,
|
|
|
|
or perhaps a non-encrypted special remote, or a path that contains
|
|
|
|
several repositories.
|
|
|
|
|
|
|
|
Information about all annex objects in the path will be
|
|
|
|
added to the git-annex branch when syncing with the borg repository.
|
|
|
|
So, it's best to avoid a path that contains object files for unrelated
|
|
|
|
git-annex repositories.
|
|
|
|
|
|
|
|
## setup example
|
|
|
|
|
|
|
|
# borg init --encryption=keyfile /path/to/borgrepo
|
2020-12-18 20:03:51 +00:00
|
|
|
# git annex initremote borg type=borg borgrepo=/path/to/borgrepo scan=`pwd`
|
2020-12-18 15:06:23 +00:00
|
|
|
# borg create /path/to/borgrepo `pwd`::{now}
|
|
|
|
# git annex sync borg
|