Commit Graph

6957 Commits

Author SHA1 Message Date
Thomas Waldmann ef24dafb15 tests: use less RepoKey/KeyfileKey 2022-06-30 20:52:48 +02:00
Thomas Waldmann dc2f2f47a8 rcreate: remove legacy encryption modes for new repos, fixes #6490
These are legacy crypto modes based on AES-CTR mode:
(repokey|keyfile)[-blake2]

New crypto modes with session keys and AEAD ciphers:

(repokey|keyfile)[-blake2]-(aes-ocb|chacha20-poly1305)

Tests needed some changes:
- most used repokey/keyfile, changed to new modes
- some nonce tests removed, the new crypto code does not generate
  the repo side nonces any more (were only used for AES-CTR)
2022-06-30 20:52:48 +02:00
TW 677de50364
Merge pull request #6813 from ThomasWaldmann/other-repo-accepts-v1-repo
support repo version 1 also, fixes #6811
2022-06-29 18:54:43 +02:00
Thomas Waldmann 8ebdb0b024 support repo version 1 also, fixes #6811
v2 is the default repo version for borg 2.0.
v1 repos must only be used in a read-only way, e.g. for
--other-repo=V1_REPO with borg init and borg transfer!
2022-06-29 17:31:50 +02:00
TW a44dbc1dc8
Merge pull request #6809 from ThomasWaldmann/refactor-transfer-upgrades-borg2
transfer: use an Upgrader class
2022-06-28 22:40:28 +02:00
Thomas Waldmann f7ef674f29 fix memoryview/bytes issue in upgrader 2022-06-28 22:11:09 +02:00
Thomas Waldmann 5d8b29a93f transfer: --upgrader=NoOp is the default
This is to support general-purpose transfer of archives between related
borg2 repos.

To transfer (and convert) archives from borg 1.2 repos, users need to
give --upgrader=From12To20 .
2022-06-28 22:11:09 +02:00
TW f2d276a892
Merge pull request #6808 from ThomasWaldmann/no-symlinked-hardlinks-macos-borg2
macOS does not support hardlinking symlinks, fixes #6802
2022-06-28 22:08:28 +02:00
TW 2fd01aaf89
Merge pull request #6810 from ThomasWaldmann/remove-old-upgrader-remainders-borg2
remove remainders of old borg/attic upgrader
2022-06-28 16:30:11 +02:00
Thomas Waldmann b5aebcc253 remove remainders of old borg/attic upgrader 2022-06-28 15:47:35 +02:00
Thomas Waldmann f749d0dccf macOS does not support hardlinking symlinks, fixes #6802 2022-06-28 13:35:36 +02:00
TW 6ebcfb7490
Merge pull request #6803 from ThomasWaldmann/fix-docs-borg2
borg2: fix docs
2022-06-26 23:01:34 +02:00
Thomas Waldmann 0a7baa53c4 docs: fix borg transfer formatting / rendering, fixes #6800 2022-06-26 20:29:10 +02:00
Thomas Waldmann e2f7087aa8 docs: remove reference to borg upgrade 2022-06-26 20:09:54 +02:00
Thomas Waldmann 9680538a70 fix rendering of list/rlist help 2022-06-26 20:08:38 +02:00
Thomas Waldmann a98c6ba479 changes: init -> rcreate 2022-06-26 19:59:08 +02:00
TW 70cc578fc2
Merge pull request #6795 from ThomasWaldmann/rel200a2
release 2.0.0 alpha 2
2022-06-26 16:38:36 +02:00
Thomas Waldmann ab25bf8175 build_usage build_man 2022-06-26 13:56:33 +02:00
Thomas Waldmann 20bf97a8a4 CHANGES: set release date, formatting 2022-06-26 13:52:47 +02:00
TW b157573c69
Merge pull request #6793 from ThomasWaldmann/more-fixes-borg2
more fixes/updates for borg2
2022-06-26 02:16:57 +02:00
Thomas Waldmann 3232cb4a7e transfer: add a specific transfer example 2022-06-26 01:22:28 +02:00
Thomas Waldmann 391178e68e update CHANGES 2022-06-26 01:03:58 +02:00
Thomas Waldmann d15791e45f authors: remove 3rd party lib authors
we do not include the source code of these libs any more.
2022-06-26 00:30:13 +02:00
Thomas Waldmann dbae8e60eb remove borg upgrade 2022-06-26 00:25:44 +02:00
Thomas Waldmann 3fbb297fd7 compact: remove --cleanup-commits
this was a one-time fix only needed for borg 1.2.

users are expected to use borg 1.2 to cleanup the commits.
2022-06-26 00:07:07 +02:00
TW 162035da91
Merge pull request #6790 from ThomasWaldmann/update-docs-borg2
borg2: update docs
2022-06-25 23:40:04 +02:00
TW e535a99c7a
Merge pull request #6792 from ThomasWaldmann/check-always-glob-borg2
borg check: remove --name, better use -a
2022-06-25 22:59:25 +02:00
Thomas Waldmann c36c75db59 borg check: remove --name, better use -a
The glob can also match precisely one archive,
so this does the same with less code.
2022-06-25 22:17:29 +02:00
Thomas Waldmann 51cf85e627 build_usage / build_man / doc updates 2022-06-25 21:58:19 +02:00
Thomas Waldmann 7f99aa155e update CHANGES, split changelog by major version 2022-06-25 21:58:19 +02:00
TW b14bf8110f
Merge pull request #6785 from ThomasWaldmann/new-info
simplified stats
2022-06-23 23:01:52 +02:00
Thomas Waldmann 31a081f695 simplify stats output
also:
- move stats related stuff to Statistics class
- repo ops give repo / overall stats
- archive ops give archive stats
- adapt tests
2022-06-23 16:00:12 +02:00
Thomas Waldmann 16b91a41ad fix accidental nesting of subparsers
python 3.11-dev threw a warning that this is deprecated.
2022-06-23 12:08:30 +02:00
Thomas Waldmann e0c64629d1 Merge branch 'master' into borg2
strange conflicts, automated patches seemed to not have applied correctly.
also had to fix some stuff manually, tests were failing.
2022-06-23 11:25:01 +02:00
TW d039f2685a
Merge pull request #6766 from ThomasWaldmann/split-repo-archive
borg2: split repo and archive name into separate args, fixes #948
2022-06-23 10:20:11 +02:00
Thomas Waldmann f578c20b22 fix benchmark tests 2022-06-23 09:50:48 +02:00
Thomas Waldmann d00d650d88 borg init -> borg rcreate
this is to complement borg rdelete, see also borg create / delete.
2022-06-23 09:16:29 +02:00
TW 1576859ec0
Merge pull request #6780 from ThomasWaldmann/paths-from-normpath-master
create --paths-from-(stdin|command): normalize paths, fixes #6778
2022-06-22 00:20:34 +02:00
Thomas Waldmann 34b6248d75 borg delete -a ARCH_GLOB, borg rdelete 2022-06-21 23:05:44 +02:00
Thomas Waldmann 9e5a8a352f borg info -a ARCH_GLOB, borg rinfo 2022-06-21 23:05:44 +02:00
Thomas Waldmann 1bf8f71e69 borg list ARCHIVE, borg rlist 2022-06-21 23:05:44 +02:00
Thomas Waldmann 6addafd784 borg mount -a ARCHIVE_GLOB mountpoint ... 2022-06-21 23:05:44 +02:00
Thomas Waldmann e6a8984c99 borg (import|export)-tar NAME ... 2022-06-20 20:17:29 +02:00
Thomas Waldmann 1ed7e5b292 borg dump-archive NAME / dump-archive-items NAME 2022-06-20 20:17:29 +02:00
Thomas Waldmann 75b53de37e borg diff ARCH1 ARCH2 2022-06-20 20:17:29 +02:00
Thomas Waldmann b8c7c53dde borg extract NAME ... 2022-06-20 20:17:29 +02:00
Thomas Waldmann f8d2024578 borg recreate -a ARCHIVE_GLOB ... 2022-06-20 20:17:29 +02:00
Thomas Waldmann 3fd5b73e1e borg create NAME ... 2022-06-20 20:17:28 +02:00
Thomas Waldmann c085c2744b borg rename NAME NEWNAME 2022-06-20 15:18:24 +02:00
Thomas Waldmann 28b32e7a57 create --paths-from-(stdin|command): normalize paths, fixes #6778 2022-06-20 14:21:37 +02:00