borg-key-change-algorithm.1 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-KEY-CHANGE-ALGORITHM 1 "2022-04-14" "" "borg backup tool"
  4. .SH NAME
  5. borg-key-change-algorithm \- Change repository key algorithm
  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\-algorithm [options] [REPOSITORY] 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. .sp
  81. REPOSITORY
  82. .INDENT 0.0
  83. .TP
  84. .B ALGORITHM
  85. select key algorithm
  86. .UNINDENT
  87. .SH SEE ALSO
  88. .sp
  89. \fIborg\-common(1)\fP
  90. .SH AUTHOR
  91. The Borg Collective
  92. .\" Generated by docutils manpage writer.
  93. .