Ir para arquivo
Jan Christian Grünhage a05bf575a8
Replaced JSON with YAML, added run commands.
TODO: Add documentation for run commands.
2017-05-31 00:03:10 +02:00
generate Replaced JSON with YAML, added run commands. 2017-05-31 00:03:10 +02:00
run Replaced JSON with YAML, added run commands. 2017-05-31 00:03:10 +02:00
.gitignore Initial commit 2017-04-13 09:42:07 +00:00
LICENSE Initial commit 2017-04-13 09:42:07 +00:00
README.md Add generate folders documentation 2017-04-26 00:03:19 +02:00
main.go Replaced JSON with YAML, added run commands. 2017-05-31 00:03:10 +02:00

README.md

borgocli (borgbackup golang command line interface)

A little binary to help with borgbackup.

Install

Install this with go get:

go get git.jcg.re/jcgruenhage/borgocli

Commands

borgocli generate authorized_keys

This generates an authorized_keys file out of a json file describing the allowed hosts, to be used with borg serve.

Usage:

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.

borgocli generate folders

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.

Usage:

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.