1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00
borg/docs/usage/upgrade.rst.inc

112 lines
6.4 KiB
PHP
Raw Normal View History

2016-07-05 21:30:08 +00:00
.. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
.. _borg_upgrade:
borg upgrade
------------
.. code-block:: none
2017-07-23 15:12:01 +00:00
borg [common options] upgrade [options] [REPOSITORY]
2017-06-20 13:22:24 +00:00
.. only:: html
2017-06-20 09:49:26 +00:00
2017-06-20 13:22:24 +00:00
.. class:: borg-options-table
2017-07-23 15:12:01 +00:00
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| **positional arguments** |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| | ``REPOSITORY`` | path to the repository to be upgraded |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| **optional arguments** |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| | ``-n``, ``--dry-run`` | do not change repository |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| | ``--inplace`` | rewrite repository in place, with no chance of going back to older versions of the repository. |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| | ``--force`` | Force upgrade |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| | ``--tam`` | Enable manifest authentication (in key and cache) (Borg 1.0.9 and later). |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| | ``--disable-tam`` | Disable manifest authentication (in key and cache). |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
| .. class:: borg-common-opt-ref |
| |
| :ref:`common_options` |
+-------------------------------------------------------+-----------------------+------------------------------------------------------------------------------------------------+
2017-06-20 09:49:26 +00:00
2017-06-20 13:22:24 +00:00
.. raw:: html
2017-06-20 13:22:24 +00:00
<script type='text/javascript'>
$(document).ready(function () {
2017-06-20 13:22:24 +00:00
$('.borg-options-table colgroup').remove();
})
</script>
2017-06-20 13:22:24 +00:00
.. only:: latex
2017-06-20 13:22:24 +00:00
REPOSITORY
path to the repository to be upgraded
optional arguments
-n, --dry-run do not change repository
2017-07-23 15:12:01 +00:00
--inplace rewrite repository in place, with no chance of going back to older versions of the repository.
2017-06-20 13:22:24 +00:00
--force Force upgrade
2017-07-23 15:12:01 +00:00
--tam Enable manifest authentication (in key and cache) (Borg 1.0.9 and later).
--disable-tam Disable manifest authentication (in key and cache).
2017-06-20 13:22:24 +00:00
:ref:`common_options`
|
Description
~~~~~~~~~~~
2017-04-29 23:31:20 +00:00
Upgrade an existing, local Borg repository.
When you do not need borg upgrade
+++++++++++++++++++++++++++++++++
Not every change requires that you run ``borg upgrade``.
You do **not** need to run it when:
- moving your repository to a different place
- upgrading to another point release (like 1.0.x to 1.0.y),
except when noted otherwise in the changelog
- upgrading from 1.0.x to 1.1.x,
except when noted otherwise in the changelog
2016-12-20 22:09:28 +00:00
Borg 1.x.y upgrades
2017-01-14 16:19:19 +00:00
+++++++++++++++++++
2016-12-20 22:09:28 +00:00
Use ``borg upgrade --tam REPO`` to require manifest authentication
introduced with Borg 1.0.9 to address security issues. This means
that modifying the repository after doing this with a version prior
to 1.0.9 will raise a validation error, so only perform this upgrade
after updating all clients using the repository to 1.0.9 or newer.
This upgrade should be done on each client for safety reasons.
If a repository is accidentally modified with a pre-1.0.9 client after
this upgrade, use ``borg upgrade --tam --force REPO`` to remedy it.
If you routinely do this you might not want to enable this upgrade
(which will leave you exposed to the security issue). You can
reverse the upgrade by issuing ``borg upgrade --disable-tam REPO``.
See
https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability
for details.
2022-04-14 19:09:23 +00:00
Borg 0.xx to Borg 1.x
+++++++++++++++++++++
2016-12-20 22:09:28 +00:00
2022-04-14 19:09:23 +00:00
This currently supports converting Borg 0.xx to 1.0.
Currently, only LOCAL repositories can be upgraded (issue #465).
2017-04-29 23:31:20 +00:00
Please note that ``borg create`` (since 1.0.0) uses bigger chunks by
2022-04-14 19:09:23 +00:00
default than old borg did, so the new chunks won't deduplicate
2017-04-29 23:31:20 +00:00
with the old chunks in the upgraded repository.
2022-04-14 19:09:23 +00:00
See ``--chunker-params`` option of ``borg create`` and ``borg recreate``.