borgbackup/docs/man/borg-key-export.1

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

117 lines
3.7 KiB
Groff
Raw Normal View History

2026-03-15 09:34:31 -04:00
.\" Man page generated from reStructuredText
.\" by the Docutils 0.22.4 manpage writer.
2017-02-05 08:22:06 -05:00
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
2026-06-16 08:17:43 -04:00
.TH "borg-key-export" "1" "2026-06-16" "" "borg backup tool"
2026-03-15 09:34:31 -04:00
.SH Name
2026-06-16 08:17:43 -04:00
borg-key-export \- Exports a borg key of the repository for backup.
2017-02-05 08:22:06 -05:00
.SH SYNOPSIS
.sp
2022-06-23 19:19:19 -04:00
borg [common options] key export [options] [PATH]
2017-02-05 08:22:06 -05:00
.SH DESCRIPTION
.sp
2026-03-15 09:34:31 -04:00
This command backs up the borg key.
.sp
2017-02-05 08:22:06 -05:00
If repository encryption is used, the repository is inaccessible
2026-03-15 09:34:31 -04:00
without the borg key (and the passphrase that protects the borg key).
If a repository is not encrypted, but authenticated, the borg key is
still needed to access the repository normally.
.sp
For repositories using \fBkeyfile\fP encryption the key is kept locally
on the system that is capable of doing backups. To guard against loss
or corruption of this key, the key needs to be backed up independently
of the main data backup.
.sp
For repositories using \fBrepokey\fP encryption or \fBauthenticated\fP mode
the key is kept in the repository. A backup is thus not strictly needed,
but guards against the repository becoming inaccessible if the key is
corrupted or lost.
.sp
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.
2026-03-15 09:34:31 -04:00
Keep the exported key and the passphrase at safe places.
2017-02-05 08:22:06 -05:00
.sp
2026-06-16 08:17:43 -04:00
A repository may have more than one borg key (each protected by its own
passphrase, see \fBborg key add\fP). Select which borg key to export with
\fB\-\-label\fP or \fB\-\-key\fP (its key id or a unique prefix, see
\fBborg key list\fP). If the repository has only a single borg key, no
selector is required.
.sp
There are three backup formats. The normal backup format is suitable for
2017-02-05 08:22:06 -05:00
digital storage as a file. The \fB\-\-paper\fP backup format is optimized
for printing and typing in while importing, with per line checks to
reduce problems with manual input. The \fB\-\-qr\-html\fP creates a printable
HTML template with a QR code and a copy of the \fB\-\-paper\fP\-formatted key.
2017-02-05 08:22:06 -05:00
.SH OPTIONS
.sp
See \fIborg\-common(1)\fP for common options of Borg commands.
.SS arguments
.INDENT 0.0
.TP
.B PATH
where to store the backup
.UNINDENT
2025-04-21 15:07:46 -04:00
.SS options
2017-02-05 08:22:06 -05:00
.INDENT 0.0
.TP
2026-06-16 08:17:43 -04:00
.BI \-\-label \ LABEL
export the borg key with this label
.TP
.BI \-\-key \ ID
export the borg key with this id (or unique id prefix)
.TP
2022-06-23 19:19:19 -04:00
.B \-\-paper
2017-02-05 08:22:06 -05:00
Create an export suitable for printing and later type\-in
2017-03-26 19:58:19 -04:00
.TP
2022-06-23 19:19:19 -04:00
.B \-\-qr\-html
2025-12-23 12:00:09 -05:00
Create an HTML file suitable for printing and later type\-in or QR scan
2017-02-05 08:22:06 -05:00
.UNINDENT
2024-07-19 14:40:15 -04:00
.SH EXAMPLES
.INDENT 0.0
.INDENT 3.5
.sp
2025-04-21 15:07:46 -04:00
.EX
2024-07-19 14:40:15 -04:00
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
2025-04-21 15:07:46 -04:00
.EE
2024-07-19 14:40:15 -04:00
.UNINDENT
.UNINDENT
2017-02-05 08:22:06 -05:00
.SH SEE ALSO
.sp
\fIborg\-common(1)\fP, \fIborg\-key\-import(1)\fP
2026-03-15 09:34:31 -04:00
.SH Author
2017-02-05 08:22:06 -05:00
The Borg Collective
2026-03-15 09:34:31 -04:00
.\" End of generated man page.