borg-key-export.1 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "BORG-KEY-EXPORT" "1" "2025-05-22" "" "borg backup tool"
  31. .SH NAME
  32. borg-key-export \- Export the repository key for backup
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] key export [options] [PATH]
  36. .SH DESCRIPTION
  37. .sp
  38. If repository encryption is used, the repository is inaccessible
  39. without the key. This command allows one to back up this essential key.
  40. Note that the backup produced does not include the passphrase itself
  41. (i.e. the exported key stays encrypted). In order to regain access to a
  42. repository, one needs both the exported key and the original passphrase.
  43. .sp
  44. There are three backup formats. The normal backup format is suitable for
  45. digital storage as a file. The \fB\-\-paper\fP backup format is optimized
  46. for printing and typing in while importing, with per line checks to
  47. reduce problems with manual input. The \fB\-\-qr\-html\fP creates a printable
  48. HTML template with a QR code and a copy of the \fB\-\-paper\fP\-formatted key.
  49. .sp
  50. For repositories using keyfile encryption the key is saved locally
  51. on the system that is capable of doing backups. To guard against loss
  52. of this key, the key needs to be backed up independently of the main
  53. data backup.
  54. .sp
  55. For repositories using the repokey encryption the key is saved in the
  56. repository in the config file. A backup is thus not strictly needed,
  57. but guards against the repository becoming inaccessible if the file
  58. is damaged for some reason.
  59. .SH OPTIONS
  60. .sp
  61. See \fIborg\-common(1)\fP for common options of Borg commands.
  62. .SS arguments
  63. .INDENT 0.0
  64. .TP
  65. .B PATH
  66. where to store the backup
  67. .UNINDENT
  68. .SS options
  69. .INDENT 0.0
  70. .TP
  71. .B \-\-paper
  72. Create an export suitable for printing and later type\-in
  73. .TP
  74. .B \-\-qr\-html
  75. Create an html file suitable for printing and later type\-in or qr scan
  76. .UNINDENT
  77. .SH EXAMPLES
  78. .INDENT 0.0
  79. .INDENT 3.5
  80. .sp
  81. .EX
  82. borg key export > encrypted\-key\-backup
  83. borg key export \-\-paper > encrypted\-key\-backup.txt
  84. borg key export \-\-qr\-html > encrypted\-key\-backup.html
  85. # Or pass the output file as an argument instead of redirecting stdout:
  86. borg key export encrypted\-key\-backup
  87. borg key export \-\-paper encrypted\-key\-backup.txt
  88. borg key export \-\-qr\-html encrypted\-key\-backup.html
  89. .EE
  90. .UNINDENT
  91. .UNINDENT
  92. .SH SEE ALSO
  93. .sp
  94. \fIborg\-common(1)\fP, \fIborg\-key\-import(1)\fP
  95. .SH AUTHOR
  96. The Borg Collective
  97. .\" Generated by docutils manpage writer.
  98. .