Jan Christian Grünhage
TODO: Add documentation for run commands.
|3 years ago|
|generate||3 years ago|
|run||3 years ago|
|.gitignore||3 years ago|
|LICENSE||3 years ago|
|README.md||3 years ago|
|main.go||3 years ago|
A little binary to help with borgbackup.
Install this with go get:
go get git.jcg.re/jcgruenhage/borgocli
This generates an authorized_keys file out of a json file describing the allowed hosts, to be used with borg serve.
borgocli generate authorized_keys path/to/hosts.json >> ~/.ssh/authorized_keys
If you want to overwrite your existing authorized_keys file, replace » with >. For an example of the json file, see example.json.
This creates the folders that are used by the authorized_keys file generated with the command above. It takes the same json file as above.
borgocli generate folder path/to/hosts.json
This is everything for now, but I hope to extend that later. This might get some functionality only useful to my docker images, since that is what I am writing this for.