borg key import /backup/repo backup-repo.key

Category: Backup & Restore

borg key import /backup/repo backup-repo.key

Import a saved repository key

Loads the key from backup-repo.key back into the repository, typically after restoring the repository from a backup. The key must match the repository's encryption, because a mismatched key makes data unreadable. Related: borg key export is the counterpart.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.