borg-key-change-passphrase.1 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-KEY-CHANGE-PASSPHRASE 1 "2017-06-18" "" "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. .SH OPTIONS
  41. .sp
  42. See \fIborg\-common(1)\fP for common options of Borg commands.
  43. .SS arguments
  44. .sp
  45. REPOSITORY
  46. .SH EXAMPLES
  47. .INDENT 0.0
  48. .INDENT 3.5
  49. .sp
  50. .nf
  51. .ft C
  52. # Create a key file protected repository
  53. $ borg init \-\-encryption=keyfile \-v /path/to/repo
  54. Initializing repository at "/path/to/repo"
  55. Enter new passphrase:
  56. Enter same passphrase again:
  57. Remember your passphrase. Your data will be inaccessible without it.
  58. Key in "/root/.config/borg/keys/mnt_backup" created.
  59. Keep this key safe. Your data will be inaccessible without it.
  60. Synchronizing chunks cache...
  61. Archives: 0, w/ cached Idx: 0, w/ outdated Idx: 0, w/o cached Idx: 0.
  62. Done.
  63. # Change key file passphrase
  64. $ borg key change\-passphrase \-v /path/to/repo
  65. Enter passphrase for key /root/.config/borg/keys/mnt_backup:
  66. Enter new passphrase:
  67. Enter same passphrase again:
  68. Remember your passphrase. Your data will be inaccessible without it.
  69. Key updated
  70. .ft P
  71. .fi
  72. .UNINDENT
  73. .UNINDENT
  74. .sp
  75. Fully automated using environment variables:
  76. .INDENT 0.0
  77. .INDENT 3.5
  78. .sp
  79. .nf
  80. .ft C
  81. $ BORG_NEW_PASSPHRASE=old borg init \-e=repokey repo
  82. # now "old" is the current passphrase.
  83. $ BORG_PASSPHRASE=old BORG_NEW_PASSPHRASE=new borg key change\-passphrase repo
  84. # now "new" is the current passphrase.
  85. .ft P
  86. .fi
  87. .UNINDENT
  88. .UNINDENT
  89. .SH SEE ALSO
  90. .sp
  91. \fIborg\-common(1)\fP
  92. .SH AUTHOR
  93. The Borg Collective
  94. .\" Generated by docutils manpage writer.
  95. .