| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 | .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!.. _borg_upgrade:borg upgrade------------::    usage: borg upgrade [-h] [--critical] [--error] [--warning] [--info] [--debug]                        [--lock-wait N] [--show-rc] [--no-files-cache] [--umask M]                        [--remote-path PATH] [-p] [-n] [-i] [--force] [--tam]                        [--disable-tam]                        [REPOSITORY]        upgrade a repository from a previous version        positional arguments:      REPOSITORY            path to the repository to be upgraded        optional arguments:      -h, --help            show this help message and exit      --critical            work on log level CRITICAL      --error               work on log level ERROR      --warning             work on log level WARNING (default)      --info, -v, --verbose                            work on log level INFO      --debug               work on log level DEBUG      --lock-wait N         wait for the lock, but max. N seconds (default: 1).      --show-rc             show/log the return code (rc)      --no-files-cache      do not load/update the file metadata cache used to                            detect unchanged files      --umask M             set umask to M (local and remote, default: 0077)      --remote-path PATH    set remote path to executable (default: "borg")      -p, --progress        show progress display while upgrading the repository      -n, --dry-run         do not change repository      -i, --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)    Description~~~~~~~~~~~Upgrade an existing Borg repository.Borg 1.x.y upgrades-------------------Use ``borg upgrade --tam REPO`` to require manifest authenticationintroduced with Borg 1.0.9 to address security issues. This meansthat modifying the repository after doing this with a version priorto 1.0.9 will raise a validation error, so only perform this upgradeafter 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 afterthis 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 canreverse the upgrade by issuing ``borg upgrade --disable-tam REPO``.Seehttps://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerabilityfor details.Attic and Borg 0.xx to Borg 1.x-------------------------------This currently supports converting an Attic repository to Borg and alsohelps with converting Borg 0.xx to 1.0.Currently, only LOCAL repositories can be upgraded (issue #465).It will change the magic strings in the repository's segmentsto match the new Borg magic strings. The keyfiles found in$ATTIC_KEYS_DIR or ~/.attic/keys/ will also be converted andcopied to $BORG_KEYS_DIR or ~/.config/borg/keys.The cache files are converted, from $ATTIC_CACHE_DIR or~/.cache/attic to $BORG_CACHE_DIR or ~/.cache/borg, but thecache layout between Borg and Attic changed, so it is possiblethe first backup after the conversion takes longer than expecteddue to the cache resync.Upgrade should be able to resume if interrupted, although itwill still iterate over all segments. If you want to startfrom scratch, use `borg delete` over the copied repository tomake sure the cache files are also removed:    borg delete borgUnless ``--inplace`` is specified, the upgrade process firstcreates a backup copy of the repository, inREPOSITORY.upgrade-DATETIME, using hardlinks. This takeslonger than in place upgrades, but is much safer and givesprogress information (as opposed to ``cp -al``). Once you aresatisfied with the conversion, you can safely destroy thebackup copy.WARNING: Running the upgrade in place will make the currentcopy unusable with older version, with no way of going backto previous versions. This can PERMANENTLY DAMAGE YOURREPOSITORY!  Attic CAN NOT READ BORG REPOSITORIES, as themagic strings have changed. You have been warned.
 |