borg-key-export.1 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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-06-04" "" "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] [REPOSITORY] [PATH]
  36. .SH DESCRIPTION
  37. .sp
  38. If repository encryption is used, the repository is inaccessible
  39. without the key. This command allows to backup 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 two 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.
  48. .sp
  49. For repositories using keyfile encryption the key is saved locally
  50. on the system that is capable of doing backups. To guard against loss
  51. of this key, the key needs to be backed up independently of the main
  52. data backup.
  53. .sp
  54. For repositories using the repokey encryption the key is saved in the
  55. repository in the config file. A backup is thus not strictly needed,
  56. but guards against the repository becoming inaccessible if the file
  57. is damaged for some reason.
  58. .sp
  59. Examples:
  60. .INDENT 0.0
  61. .INDENT 3.5
  62. .sp
  63. .nf
  64. .ft C
  65. borg key export /path/to/repo > encrypted\-key\-backup
  66. borg key export \-\-paper /path/to/repo > encrypted\-key\-backup.txt
  67. borg key export \-\-qr\-html /path/to/repo > encrypted\-key\-backup.html
  68. # Or pass the output file as an argument instead of redirecting stdout:
  69. borg key export /path/to/repo encrypted\-key\-backup
  70. borg key export \-\-paper /path/to/repo encrypted\-key\-backup.txt
  71. borg key export \-\-qr\-html /path/to/repo encrypted\-key\-backup.html
  72. .ft P
  73. .fi
  74. .UNINDENT
  75. .UNINDENT
  76. .SH OPTIONS
  77. .sp
  78. See \fIborg\-common(1)\fP for common options of Borg commands.
  79. .SS arguments
  80. .sp
  81. REPOSITORY
  82. .INDENT 0.0
  83. .TP
  84. .B PATH
  85. where to store the backup
  86. .UNINDENT
  87. .SS optional arguments
  88. .INDENT 0.0
  89. .TP
  90. .B \-\-paper
  91. Create an export suitable for printing and later type\-in
  92. .TP
  93. .B \-\-qr\-html
  94. Create an html file suitable for printing and later type\-in or qr scan
  95. .UNINDENT
  96. .SH SEE ALSO
  97. .sp
  98. \fIborg\-common(1)\fP, \fIborg\-key\-import(1)\fP
  99. .SH AUTHOR
  100. The Borg Collective
  101. .\" Generated by docutils manpage writer.
  102. .