borg key export /backup/repo backup-repo.key

Category: Backup & Restore

borg key export /backup/repo backup-repo.key

Export the repository key to a file

Writes the repository's encryption key to backup-repo.key so you can keep a copy outside the repo, for example offsite. Without the key and passphrase the backup is unreadable, so this is a critical safety copy. Anyone holding key and passphrase can decrypt everything.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.