borg-key-change-passphrase.1 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-KEY-CHANGE-PASSPHRASE 1 "2020-12-06" "" "borg backup tool"
  4. .SH NAME
  5. borg-key-change-passphrase \- Change repository key file passphrase
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] key change\-passphrase [options] [REPOSITORY]
  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. .SS arguments
  49. .sp
  50. REPOSITORY
  51. .SH EXAMPLES
  52. .INDENT 0.0
  53. .INDENT 3.5
  54. .sp
  55. .nf
  56. .ft C
  57. # Create a key file protected repository
  58. $ borg init \-\-encryption=keyfile \-v /path/to/repo
  59. Initializing repository at "/path/to/repo"
  60. Enter new passphrase:
  61. Enter same passphrase again:
  62. Remember your passphrase. Your data will be inaccessible without it.
  63. Key in "/root/.config/borg/keys/mnt_backup" created.
  64. Keep this key safe. Your data will be inaccessible without it.
  65. Synchronizing chunks cache...
  66. Archives: 0, w/ cached Idx: 0, w/ outdated Idx: 0, w/o cached Idx: 0.
  67. Done.
  68. # Change key file passphrase
  69. $ borg key change\-passphrase \-v /path/to/repo
  70. Enter passphrase for key /root/.config/borg/keys/mnt_backup:
  71. Enter new passphrase:
  72. Enter same passphrase again:
  73. Remember your passphrase. Your data will be inaccessible without it.
  74. Key updated
  75. # Import a previously\-exported key into the specified
  76. # key file (creating or overwriting the output key)
  77. # (keyfile repositories only)
  78. $ BORG_KEY_FILE=/path/to/output\-key borg key import /path/to/repo /path/to/exported
  79. .ft P
  80. .fi
  81. .UNINDENT
  82. .UNINDENT
  83. .sp
  84. Fully automated using environment variables:
  85. .INDENT 0.0
  86. .INDENT 3.5
  87. .sp
  88. .nf
  89. .ft C
  90. $ BORG_NEW_PASSPHRASE=old borg init \-e=repokey repo
  91. # now "old" is the current passphrase.
  92. $ BORG_PASSPHRASE=old BORG_NEW_PASSPHRASE=new borg key change\-passphrase repo
  93. # now "new" is the current passphrase.
  94. .ft P
  95. .fi
  96. .UNINDENT
  97. .UNINDENT
  98. .SH SEE ALSO
  99. .sp
  100. \fIborg\-common(1)\fP
  101. .SH AUTHOR
  102. The Borg Collective
  103. .\" Generated by docutils manpage writer.
  104. .