2022-06-23 19:19:19 -04:00
|
|
|
.. include:: transfer.rst.inc
|
2022-06-25 19:22:28 -04:00
|
|
|
|
|
|
|
|
Examples
|
|
|
|
|
~~~~~~~~
|
|
|
|
|
::
|
2022-06-26 14:11:41 -04:00
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# 0. Have Borg 2.0 installed on the client AND server; have a b12 repository copy for testing.
|
2022-06-25 19:22:28 -04:00
|
|
|
|
|
|
|
|
# 1. Create a new "related" repository:
|
2025-08-23 18:21:57 -04:00
|
|
|
# Here, the existing Borg 1.2 repository used repokey-blake2 (and AES-CTR mode),
|
|
|
|
|
# thus we use repokey-blake2-aes-ocb for the new Borg 2.0 repository.
|
|
|
|
|
# Staying with the same chunk ID algorithm (BLAKE2) and with the same
|
2022-06-25 19:22:28 -04:00
|
|
|
# key material (via --other-repo <oldrepo>) will make deduplication work
|
|
|
|
|
# between old archives (copied with borg transfer) and future ones.
|
2025-08-23 18:21:57 -04:00
|
|
|
# The AEAD cipher does not matter (everything must be re-encrypted and
|
|
|
|
|
# re-authenticated anyway); you could also choose repokey-blake2-chacha20-poly1305.
|
|
|
|
|
# In case your old Borg repository did not use BLAKE2, just remove the "-blake2".
|
2024-09-08 10:26:52 -04:00
|
|
|
$ borg --repo ssh://borg2@borgbackup/./tests/b20 repo-create \
|
2022-06-25 19:22:28 -04:00
|
|
|
--other-repo ssh://borg2@borgbackup/./tests/b12 -e repokey-blake2-aes-ocb
|
|
|
|
|
|
|
|
|
|
# 2. Check what and how much it would transfer:
|
2022-08-01 17:47:26 -04:00
|
|
|
$ borg --repo ssh://borg2@borgbackup/./tests/b20 transfer --upgrader=From12To20 \
|
2022-06-25 19:22:28 -04:00
|
|
|
--other-repo ssh://borg2@borgbackup/./tests/b12 --dry-run
|
|
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# 3. Transfer (copy) archives from the old repository into the new repository (takes time and space!):
|
2022-08-01 17:47:26 -04:00
|
|
|
$ borg --repo ssh://borg2@borgbackup/./tests/b20 transfer --upgrader=From12To20 \
|
2022-06-25 19:22:28 -04:00
|
|
|
--other-repo ssh://borg2@borgbackup/./tests/b12
|
|
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# 4. Check whether we have everything (same as step 2):
|
2022-08-01 17:47:26 -04:00
|
|
|
$ borg --repo ssh://borg2@borgbackup/./tests/b20 transfer --upgrader=From12To20 \
|
2022-06-25 19:22:28 -04:00
|
|
|
--other-repo ssh://borg2@borgbackup/./tests/b12 --dry-run
|
2022-07-04 18:38:37 -04:00
|
|
|
|