upgrade.rst.inc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_upgrade:
  3. borg upgrade
  4. ------------
  5. .. code-block:: none
  6. borg [common options] upgrade [options]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  10. | **optional arguments** |
  11. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  12. | | ``-n``, ``--dry-run`` | do not change repository |
  13. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  14. | | ``--inplace`` | rewrite repository in place, with no chance of going back to older versions of the repository. |
  15. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  16. | | ``--force`` | Force upgrade |
  17. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  18. | | ``--tam`` | Enable manifest authentication (in key and cache) (Borg 1.0.9 and later). |
  19. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  20. | | ``--disable-tam`` | Disable manifest authentication (in key and cache). |
  21. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  22. | .. class:: borg-common-opt-ref |
  23. | |
  24. | :ref:`common_options` |
  25. +-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
  26. .. raw:: html
  27. <script type='text/javascript'>
  28. $(document).ready(function () {
  29. $('.borg-options-table colgroup').remove();
  30. })
  31. </script>
  32. .. only:: latex
  33. optional arguments
  34. -n, --dry-run do not change repository
  35. --inplace rewrite repository in place, with no chance of going back to older versions of the repository.
  36. --force Force upgrade
  37. --tam Enable manifest authentication (in key and cache) (Borg 1.0.9 and later).
  38. --disable-tam Disable manifest authentication (in key and cache).
  39. :ref:`common_options`
  40. |
  41. Description
  42. ~~~~~~~~~~~
  43. Upgrade an existing, local Borg repository.
  44. When you do not need borg upgrade
  45. +++++++++++++++++++++++++++++++++
  46. Not every change requires that you run ``borg upgrade``.
  47. You do **not** need to run it when:
  48. - moving your repository to a different place
  49. - upgrading to another point release (like 1.0.x to 1.0.y),
  50. except when noted otherwise in the changelog
  51. - upgrading from 1.0.x to 1.1.x,
  52. except when noted otherwise in the changelog
  53. Borg 1.x.y upgrades
  54. +++++++++++++++++++
  55. Use ``borg upgrade --tam REPO`` to require manifest authentication
  56. introduced with Borg 1.0.9 to address security issues. This means
  57. that modifying the repository after doing this with a version prior
  58. to 1.0.9 will raise a validation error, so only perform this upgrade
  59. after updating all clients using the repository to 1.0.9 or newer.
  60. This upgrade should be done on each client for safety reasons.
  61. If a repository is accidentally modified with a pre-1.0.9 client after
  62. this upgrade, use ``borg upgrade --tam --force REPO`` to remedy it.
  63. If you routinely do this you might not want to enable this upgrade
  64. (which will leave you exposed to the security issue). You can
  65. reverse the upgrade by issuing ``borg upgrade --disable-tam REPO``.
  66. See
  67. https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability
  68. for details.
  69. Borg 0.xx to Borg 1.x
  70. +++++++++++++++++++++
  71. This currently supports converting Borg 0.xx to 1.0.
  72. Currently, only LOCAL repositories can be upgraded (issue #465).
  73. Please note that ``borg create`` (since 1.0.0) uses bigger chunks by
  74. default than old borg did, so the new chunks won't deduplicate
  75. with the old chunks in the upgraded repository.
  76. See ``--chunker-params`` option of ``borg create`` and ``borg recreate``.