upgrade.rst 957 B

123456789101112131415161718192021222324252627282930
  1. .. include:: upgrade.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # Upgrade the borg repository to the most recent version.
  6. $ borg upgrade -v /path/to/repo
  7. making a hardlink copy in /path/to/repo.before-upgrade-2016-02-15-20:51:55
  8. opening attic repository with borg and converting
  9. no key file found for repository
  10. converting repo index /path/to/repo/index.0
  11. converting 1 segments...
  12. converting borg 0.xx to borg current
  13. no key file found for repository
  14. .. _borg_key_migrate-to-repokey:
  15. Upgrading a passphrase encrypted attic repo
  16. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17. attic offered a "passphrase" encryption mode, but this was removed in borg 1.0
  18. and replaced by the "repokey" mode (which stores the passphrase-protected
  19. encryption key into the repository config).
  20. Thus, to upgrade a "passphrase" attic repo to a "repokey" borg repo, 2 steps
  21. are needed, in this order:
  22. - borg upgrade repo
  23. - borg key migrate-to-repokey repo