Skip to content

Commit c6db7fe

Browse files
authored
update key command (#118)
1 parent e138974 commit c6db7fe

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

src/commands/misc/key.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
# Key - Manage repository keys
22

3-
**⚠️ Be aware**: This is not yet implemented!
4-
53
The `key` command allows you to set multiple access keys or passwords per
64
repository. In fact, you can use the `list`, `add`, `remove`, and `passwd`
75
(changes a password) sub-commands to manage these keys very precisely:
86

97
```console
108
$ rustic key list
119
enter password for repository:
12-
ID User Host Created
13-
----------------------------------------------------------------------
14-
*eb78040b username kasimir 2015-08-12 13:29:57
10+
| ID | User | Host | Created |
11+
|-----------|----------|---------|--------------------------------------|
12+
| *8a9d4286 | username | kasimir | 2025-08-12 13:29:57.759858440 +02:00 |
1513

16-
$ rustic key add
17-
enter password for repository:
18-
enter password for new key:
19-
enter password again:
20-
saved new key as <Key of username@kasimir, created on 2015-08-12 13:35:05.316831933 +0200 CEST>
14+
$ rustic key add --with-created --username alex --hostname batman
15+
enter password for new key: [hidden]
16+
[INFO] key 70970299 successfully added.
2117

2218
$ rustic key list
2319
enter password for repository:
24-
ID User Host Created
25-
----------------------------------------------------------------------
26-
5c657874 username kasimir 2015-08-12 13:35:05
27-
*eb78040b username kasimir 2015-08-12 13:29:57
20+
| ID | User | Host | Created |
21+
|-----------|----------|---------|--------------------------------------|
22+
| *8a9d4286 | username | kasimir | 2025-08-12 13:29:57.759858440 +02:00 |
23+
| 70970299 | alex | batman | 2025-10-11 22:37:29.759858440 +02:00 |
2824
```
2925

3026
**Note**: that the currently used key is indicated by an asterisk (`*`).

0 commit comments

Comments
 (0)