key_change-algorithm.rst.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_key_change-algorithm:
  3. borg key change-algorithm
  4. -------------------------
  5. .. code-block:: none
  6. borg [common options] key change-algorithm [options] ALGORITHM
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+---------------+----------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+---------------+----------------------+
  12. | | ``ALGORITHM`` | select key algorithm |
  13. +-------------------------------------------------------+---------------+----------------------+
  14. | .. class:: borg-common-opt-ref |
  15. | |
  16. | :ref:`common_options` |
  17. +-------------------------------------------------------+---------------+----------------------+
  18. .. raw:: html
  19. <script type='text/javascript'>
  20. $(document).ready(function () {
  21. $('.borg-options-table colgroup').remove();
  22. })
  23. </script>
  24. .. only:: latex
  25. ALGORITHM
  26. select key algorithm
  27. :ref:`common_options`
  28. |
  29. Description
  30. ~~~~~~~~~~~
  31. Change the algorithm we use to encrypt and authenticate the borg key.
  32. Important: In a `repokey` mode (e.g. repokey-blake2) all users share the same key.
  33. In this mode upgrading to `argon2` will make it impossible to access the repo for users who use an old version of borg.
  34. We recommend upgrading to the latest stable version.
  35. Important: In a `keyfile` mode (e.g. keyfile-blake2) each user has their own key (in ``~/.config/borg/keys``).
  36. In this mode this command will only change the key used by the current user.
  37. If you want to upgrade to `argon2` to strengthen security, you will have to upgrade each user's key individually.
  38. Your repository is encrypted and authenticated with a key that is randomly generated by ``borg init``.
  39. The key is encrypted and authenticated with your passphrase.
  40. We currently support two choices:
  41. 1. argon2 - recommended. This algorithm is used by default when initialising a new repository.
  42. The key encryption key is derived from your passphrase via argon2-id.
  43. Argon2 is considered more modern and secure than pbkdf2.
  44. 2. pbkdf2 - the legacy algorithm. Use this if you want to access your repo via old versions of borg.
  45. The key encryption key is derived from your passphrase via PBKDF2-HMAC-SHA256.
  46. Examples::
  47. # Upgrade an existing key to argon2
  48. borg key change-algorithm /path/to/repo argon2
  49. # Downgrade to pbkdf2 - use this if upgrading borg is not an option
  50. borg key change-algorithm /path/to/repo pbkdf2