borg-key-change-passphrase.1 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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-CHANGE-PASSPHRASE" 1 "2023-09-14" "" "borg backup tool"
  31. .SH NAME
  32. borg-key-change-passphrase \- Change repository key file passphrase
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] key change\-passphrase [options]
  36. .SH DESCRIPTION
  37. .sp
  38. The key files used for repository encryption are optionally passphrase
  39. protected. This command can be used to change this passphrase.
  40. .sp
  41. Please note that this command only changes the passphrase, but not any
  42. secret protected by it (like e.g. encryption/MAC keys or chunker seed).
  43. Thus, changing the passphrase after passphrase and borg key got compromised
  44. does not protect future (nor past) backups to the same repository.
  45. .SH OPTIONS
  46. .sp
  47. See \fIborg\-common(1)\fP for common options of Borg commands.
  48. .SH EXAMPLES
  49. .INDENT 0.0
  50. .INDENT 3.5
  51. .sp
  52. .nf
  53. .ft C
  54. # Create a key file protected repository
  55. $ borg rcreate \-\-encryption=keyfile\-aes\-ocb \-v
  56. Initializing repository at \(dq/path/to/repo\(dq
  57. Enter new passphrase:
  58. Enter same passphrase again:
  59. Remember your passphrase. Your data will be inaccessible without it.
  60. Key in \(dq/root/.config/borg/keys/mnt_backup\(dq created.
  61. Keep this key safe. Your data will be inaccessible without it.
  62. Synchronizing chunks cache...
  63. Archives: 0, w/ cached Idx: 0, w/ outdated Idx: 0, w/o cached Idx: 0.
  64. Done.
  65. # Change key file passphrase
  66. $ borg key change\-passphrase \-v
  67. Enter passphrase for key /root/.config/borg/keys/mnt_backup:
  68. Enter new passphrase:
  69. Enter same passphrase again:
  70. Remember your passphrase. Your data will be inaccessible without it.
  71. Key updated
  72. # Import a previously\-exported key into the specified
  73. # key file (creating or overwriting the output key)
  74. # (keyfile repositories only)
  75. $ BORG_KEY_FILE=/path/to/output\-key borg key import /path/to/exported
  76. .ft P
  77. .fi
  78. .UNINDENT
  79. .UNINDENT
  80. .sp
  81. Fully automated using environment variables:
  82. .INDENT 0.0
  83. .INDENT 3.5
  84. .sp
  85. .nf
  86. .ft C
  87. $ BORG_NEW_PASSPHRASE=old borg rcreate \-\-encryption=repokey\-aes\-ocb
  88. # now \(dqold\(dq is the current passphrase.
  89. $ BORG_PASSPHRASE=old BORG_NEW_PASSPHRASE=new borg key change\-passphrase
  90. # now \(dqnew\(dq is the current passphrase.
  91. .ft P
  92. .fi
  93. .UNINDENT
  94. .UNINDENT
  95. .SH SEE ALSO
  96. .sp
  97. \fIborg\-common(1)\fP
  98. .SH AUTHOR
  99. The Borg Collective
  100. .\" Generated by docutils manpage writer.
  101. .