Skip to content

Commit

Permalink
More improvements to documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchambers committed Dec 25, 2020
1 parent 7c5907f commit 6abacff
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bupstash"
version = "0.6.1"
version = "0.6.2"
authors = ["Andrew Chambers <ac@acha.ninja>"]
edition = "2018"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions doc/man/bupstash-get.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ more information on the query cache.
remote repositories if ssh access is configured. If not specified, is set to `BUPSTASH_REPOSITORY`.

* -k, --key KEY:
Primary key used to decrypt data and metadata. If not set, defaults
Key that will be used to decrypt data and metadata. If not set, defaults
to `BUPSTASH_KEY`.

* --pick PATH:
Expand Down Expand Up @@ -60,7 +60,7 @@ more information on the query cache.
allows more complex connections to the repository for less common use cases.

* BUPSTASH_KEY:
Path to a primary key that will be used for decrypting data and metadata.
Path to the key that will be used for decrypting data and metadata.

* BUPSTASH_KEY_COMMAND:
A command to run that must print the key data, can be used instead of BUPSTASH_KEY
Expand Down
10 changes: 5 additions & 5 deletions doc/man/bupstash-new-sub-key.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ their search tags, without exposing the data decryption key.

The generated key will be marked readable only for the creating user.

If a sub-key is lost, the primary key will still be able to decrypt
any data saved with the original primary key, or a put-key derived from that key.
If a sub-key is lost, the original key will still be able to decrypt any data in the repository
encrypted by that sub-key.

## OPTIONS

* -k, --key PATH:
Key to derive the new put-key from.
Key to derive the new sub-key from.
* -o, --output PATH:
Path to where the put-key will be written.
Path to where the sub-key will be written.
* --put:
The key is able to encrypt data for 'put' operations.
* --list:
Expand All @@ -43,7 +43,7 @@ any data saved with the original primary key, or a put-key derived from that key
### Create a new put only key

```
$ bupstash new-put-key -k backups.key -o ./put.key
$ bupstash new-sub-key --put -k backups.key -o ./put.key
$ bupstash put -k ./backups-put.key ./data
```

Expand Down
4 changes: 2 additions & 2 deletions doc/man/bupstash-put.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Default tags can be overidden manually by simply specifying them.
remote repositories if ssh access is configured. If not specified, is set to `BUPSTASH_REPOSITORY`.

* -k, --key KEY:
Primary key or put-key to encrypt data and metadata with. If not set, defaults
Key used to encrypt data and metadata. If not set, defaults
to `BUPSTASH_KEY`.

* -e, --exec:
Expand Down Expand Up @@ -125,7 +125,7 @@ Default tags can be overidden manually by simply specifying them.
allows more complex connections to the repository for less common use cases.

* BUPSTASH_KEY:
Path to a primary key, or a put-key, that will be used to encrypt
Path to the key that will be used to encrypt
the data. Only the associated primary key will be able to decrypt
the data once sent.

Expand Down
13 changes: 5 additions & 8 deletions doc/man/bupstash.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Run one of the following `bupstash` subcommands.

`bupstash init ...`<br>
`bupstash new-key ...`<br>
`bupstash new-put-key ...`<br>
`bupstash new-metadata-key ...`<br>
`bupstash new-sub-key ...`<br>
`bupstash put ...`<br>
`bupstash list ...`<br>
`bupstash list-contents ...`<br>
Expand Down Expand Up @@ -47,10 +46,8 @@ that each have their own documentation.
Initialize a bupstash repository.
* bupstash-new-key(1):
Create a new primary key for creating/reading repository items.
* bupstash-new-put-key(1):
Derive a put only key from a primary key.
* bupstash-new-metadata-key(1):
Derive a list/rm only key from a primary key.
* bupstash-new-sub-key(1):
Derive a sub key for a subset of operations.
* bupstash-put(1):
Add data to a bupstash repository.
* bupstash-get(1):
Expand Down Expand Up @@ -148,8 +145,8 @@ $ bupstash gc
```
# Create a key, a put only key, and a metadata (list/rm only) key.
$ bupstash new-key -o backups.key
$ bupstash new-put-key -k backups.key -o backups-put.key
$ bupstash new-metadata-key -k backups.key -o backups-metadata.key
$ bupstash new-sub-key --put -k backups.key -o backups-put.key
$ bupstash new-sub-key --list -k backups.key -o backups-metadata.key
... Copy backups.key to secure offline storage ...
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ fn list_main(args: Vec<String>) -> Result<(), anyhow::Error> {
Some(key) => {
if !key.is_list_key() {
anyhow::bail!(
"only primary keys and sub keys created with '--list' can be used for listing"
"only main keys and sub keys created with '--list' can be used for listing"
)
}

Expand Down

0 comments on commit 6abacff

Please # to comment.