From 5397b37c13cffa86143e54945af355b10c6dcd3f Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 10 Jun 2026 11:44:58 -0700 Subject: [PATCH] Use vaultik_backup_private_key.txt filename in keygen examples --- README.md | 8 ++++---- internal/cli/config.go | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bff92cf..e28c048 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ go install sneak.berlin/go/vaultik/cmd/vaultik@latest # create a default config file (prints the path it wrote to) vaultik config init -# generate an age keypair; keep key.txt somewhere safe and offline — -# you need it to restore, and the backed-up machine does not need it -age-keygen -o key.txt -grep 'public key' key.txt +# generate an age keypair; keep the private key file somewhere safe and +# offline — you need it to restore, and the backed-up machine does not need it +age-keygen -o vaultik_backup_private_key.txt +grep 'public key' vaultik_backup_private_key.txt # configure the encryption key and backup destination vaultik config set age_recipients.0 age1YOUR_PUBLIC_KEY_HERE diff --git a/internal/cli/config.go b/internal/cli/config.go index e9af774..7ac890c 100644 --- a/internal/cli/config.go +++ b/internal/cli/config.go @@ -20,7 +20,8 @@ const defaultConfigTemplate = `# vaultik configuration # Age recipient public keys for encryption. # Backups are encrypted to ALL listed recipients. Any one of the corresponding # private keys can decrypt. Generate a keypair with: -# age-keygen -o key.txt && grep 'public key' key.txt +# age-keygen -o vaultik_backup_private_key.txt +# grep 'public key' vaultik_backup_private_key.txt age_recipients: - age1REPLACE_WITH_YOUR_PUBLIC_KEY