borgocli/README.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

2017-04-13 10:10:56 +00:00
# borgocli (borgbackup golang command line interface)
A little binary to help with borgbackup.
2017-04-13 09:42:07 +00:00
2017-04-13 10:10:56 +00:00
## Install
Install this with go get:
```
2017-04-25 17:57:00 +00:00
go get git.jcg.re/jcgruenhage/borgocli
2017-04-13 10:10:56 +00:00
```
## 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](https://borgbackup.readthedocs.io/en/stable/usage.html#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](https://git.jcg.re/jcgruenhage/borgocli/src/master/generate/authorized_keys/example.json).
2017-04-25 22:03:19 +00:00
### 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
```
2017-04-13 10:10:56 +00:00
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.