mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
585 B
Plaintext
18 lines
585 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# tarsnap-keygen
|
|
|
|
> Generate a key file for use with Tarsnap, an online backup service.
|
|
> More information: <https://www.tarsnap.com/man-tarsnap-keygen.1.html>.
|
|
|
|
- Register a machine with the Tarsnap server:
|
|
|
|
`sudo tarsnap-keygen --keyfile {{path/to/file.key}} --user {{user_email}} --machine {{machine_name}}`
|
|
|
|
- Encrypt the key file (a passphrase will be requested twice):
|
|
|
|
`sudo tarsnap-keygen --keyfile {{path/to/file.key}} --user {{user_email}} --machine {{machine_name}} --passphrased`
|