borg-key-change-algorithm.1 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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-ALGORITHM" 1 "2022-06-26" "" "borg backup tool"
  31. .SH NAME
  32. borg-key-change-algorithm \- Change repository key algorithm
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] key change\-algorithm [options] ALGORITHM
  36. .SH DESCRIPTION
  37. .sp
  38. Change the algorithm we use to encrypt and authenticate the borg key.
  39. .sp
  40. Important: In a \fIrepokey\fP mode (e.g. repokey\-blake2) all users share the same key.
  41. In this mode upgrading to \fIargon2\fP will make it impossible to access the repo for users who use an old version of borg.
  42. We recommend upgrading to the latest stable version.
  43. .sp
  44. Important: In a \fIkeyfile\fP mode (e.g. keyfile\-blake2) each user has their own key (in \fB~/.config/borg/keys\fP).
  45. In this mode this command will only change the key used by the current user.
  46. If you want to upgrade to \fIargon2\fP to strengthen security, you will have to upgrade each user\(aqs key individually.
  47. .sp
  48. Your repository is encrypted and authenticated with a key that is randomly generated by \fBborg init\fP\&.
  49. The key is encrypted and authenticated with your passphrase.
  50. .sp
  51. We currently support two choices:
  52. .INDENT 0.0
  53. .IP 1. 3
  54. argon2 \- recommended. This algorithm is used by default when initialising a new repository.
  55. The key encryption key is derived from your passphrase via argon2\-id.
  56. Argon2 is considered more modern and secure than pbkdf2.
  57. .IP 2. 3
  58. pbkdf2 \- the legacy algorithm. Use this if you want to access your repo via old versions of borg.
  59. The key encryption key is derived from your passphrase via PBKDF2\-HMAC\-SHA256.
  60. .UNINDENT
  61. .sp
  62. Examples:
  63. .INDENT 0.0
  64. .INDENT 3.5
  65. .sp
  66. .nf
  67. .ft C
  68. # Upgrade an existing key to argon2
  69. borg key change\-algorithm /path/to/repo argon2
  70. # Downgrade to pbkdf2 \- use this if upgrading borg is not an option
  71. borg key change\-algorithm /path/to/repo pbkdf2
  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. .INDENT 0.0
  81. .TP
  82. .B ALGORITHM
  83. select key algorithm
  84. .UNINDENT
  85. .SH SEE ALSO
  86. .sp
  87. \fIborg\-common(1)\fP
  88. .SH AUTHOR
  89. The Borg Collective
  90. .\" Generated by docutils manpage writer.
  91. .