| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 | .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!.. _borg_upgrade:borg upgrade------------::    borg upgrade <options> REPOSITORYpositional arguments    REPOSITORY        path to the repository to be upgradedoptional arguments    ``-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.`Common options`_    |Description~~~~~~~~~~~Upgrade an existing Borg repository.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.
 |