borg-key-export.1 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 "2022-11-26" "" "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. .sp
  60. Examples:
  61. .INDENT 0.0
  62. .INDENT 3.5
  63. .sp
  64. .nf
  65. .ft C
  66. borg key export /path/to/repo > encrypted\-key\-backup
  67. borg key export \-\-paper /path/to/repo > encrypted\-key\-backup.txt
  68. borg key export \-\-qr\-html /path/to/repo > encrypted\-key\-backup.html
  69. # Or pass the output file as an argument instead of redirecting stdout:
  70. borg key export /path/to/repo encrypted\-key\-backup
  71. borg key export \-\-paper /path/to/repo encrypted\-key\-backup.txt
  72. borg key export \-\-qr\-html /path/to/repo encrypted\-key\-backup.html
  73. .ft P
  74. .fi
  75. .UNINDENT
  76. .UNINDENT
  77. .SH OPTIONS
  78. .sp
  79. See \fIborg\-common(1)\fP for common options of Borg commands.
  80. .SS arguments
  81. .INDENT 0.0
  82. .TP
  83. .B PATH
  84. where to store the backup
  85. .UNINDENT
  86. .SS options
  87. .INDENT 0.0
  88. .TP
  89. .B \-\-paper
  90. Create an export suitable for printing and later type\-in
  91. .TP
  92. .B \-\-qr\-html
  93. Create an html file suitable for printing and later type\-in or qr scan
  94. .UNINDENT
  95. .SH SEE ALSO
  96. .sp
  97. \fIborg\-common(1)\fP, \fIborg\-key\-import(1)\fP
  98. .SH AUTHOR
  99. The Borg Collective
  100. .\" Generated by docutils manpage writer.
  101. .