Man page - borg2-key-export(1)
Packages contains this manual
- borg2-diff(1)
- borg2-break-lock(1)
- borg2-umount(1)
- borg2-mount(1)
- borg2-export-tar(1)
- borg2-key(1)
- borg2-common(1)
- borg2-prune(1)
- borg2-match-archives(1)
- borg2-placeholders(1)
- borg2-check(1)
- borg2-compact(1)
- borg2-delete(1)
- borg2-extract(1)
- borg2-benchmark-crud(1)
- borg2-key-export(1)
- borg2-analyze(1)
- borg2(1)
- borg2-list(1)
- borg2-import-tar(1)
- borg2-repo-delete(1)
- borg2-undelete(1)
- borg2-create(1)
- borg2-patterns(1)
- borgfs2(1)
- borg2-compression(1)
- borgbackup2(1)
- borg2-key-change-passphrase(1)
- borg2-recreate(1)
- borg2-version(1)
- borg2-repo-list(1)
- borg2-tag(1)
- borg2-rename(1)
- borg2-repo-create(1)
- borg2-serve(1)
- borg2-transfer(1)
- borg2-benchmark-cpu(1)
- borg2-benchmark(1)
- borg2-info(1)
- borg2-key-change-location(1)
- borg2-repo-compress(1)
- borg2-with-lock(1)
- borg2-key-import(1)
- borg2-repo-info(1)
- borg2-repo-space(1)
apt-get install borgbackup2
Manual
BORG-KEY-EXPORT
NAMESYNOPSIS
DESCRIPTION
OPTIONS
arguments
options
EXAMPLES
SEE ALSO
AUTHOR
NAME
borg-key-export - Export the repository key for backup
SYNOPSIS
borg [common options] key export [options] [PATH]
DESCRIPTION
If repository encryption is used, the repository is inaccessible without the key. This command allows one to back up this essential key. Note that the backup produced does not include the passphrase itself (i.e. the exported key stays encrypted). In order to regain access to a repository, one needs both the exported key and the original passphrase.
There are three backup formats. The normal backup format is suitable for digital storage as a file. The --paper backup format is optimized for printing and typing in while importing, with per line checks to reduce problems with manual input. The --qr-html creates a printable HTML template with a QR code and a copy of the --paper -formatted key.
For repositories using keyfile encryption the key is saved locally on the system that is capable of doing backups. To guard against loss of this key, the key needs to be backed up independently of the main data backup.
For repositories using the repokey encryption the key is saved in the repository in the config file. A backup is thus not strictly needed, but guards against the repository becoming inaccessible if the file is damaged for some reason.
OPTIONS
See borg-common(1) for common options of Borg commands.
arguments
|
PATH |
where to store the backup |
options
--paper
Create an export suitable for printing and later type-in
--qr-html
Create an html file suitable for printing and later type-in or qr scan
EXAMPLES
borg key export
> encrypted-key-backup
borg key export --paper > encrypted-key-backup.txt
borg key export --qr-html > encrypted-key-backup.html
# Or pass the output file as an argument instead of
redirecting stdout:
borg key export encrypted-key-backup
borg key export --paper encrypted-key-backup.txt
borg key export --qr-html encrypted-key-backup.html
SEE ALSO
borg-common(1) , borg-key-import(1)
AUTHOR
The Borg Collective