Commit Graph

6939 Commits

Author SHA1 Message Date
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
Thomas Waldmann 206245f3cd --repo: add -r short option 2022-06-16 15:41:37 +02:00
Thomas Waldmann 801ce819a3 help: archive name 2022-06-16 14:32:40 +02:00
Thomas Waldmann 3e765522de help: transfer from other repo 2022-06-16 14:23:47 +02:00
Thomas Waldmann 7dbf125083 Location: remove archive name 2022-06-16 14:18:47 +02:00
Thomas Waldmann 281bbbc16b fix tests and benchmarks 2022-06-16 14:18:39 +02:00
Thomas Waldmann 0f0cd24354 if --(other-)repo option is not given, use default from environment
remove tests composing a repo+archive location with repo from env
and location from cli.
2022-06-16 14:14:54 +02:00
Thomas Waldmann 1bf2a6a240 remove archive checks from location_validator, use --other-repo 2022-06-15 17:07:42 +02:00
Thomas Waldmann 1c707b7da2 cli: use --repo option instead of positional repo parameter
currently still with ::archive appended.
2022-06-15 16:36:56 +02:00
TW 9e5062c015
Merge pull request #6774 from ThomasWaldmann/fix-selftest-count-borg2
borg2: misc small fixes
2022-06-14 16:57:26 +02:00
TW a3a1974c52
Merge pull request #6773 from wizeman/fix-obfuscate
fix test_obfuscate byte accounting
2022-06-14 15:43:30 +02:00
Thomas Waldmann c01f3527e5 fix linter errors 2022-06-14 15:42:30 +02:00
Thomas Waldmann 72994a4432 also test pull requests against borg2 branch 2022-06-14 15:40:09 +02:00
Thomas Waldmann f9132687e3 fix selftest count 2022-06-14 15:17:30 +02:00
Ricardo M. Correia 18f70be0e3 fix test_obfuscate byte accounting 2022-06-14 14:55:02 +02:00
TW dc4a1e6d2d
Merge pull request #6705 from ThomasWaldmann/repoindex
borg2: repoindex improvements
2022-06-14 14:51:18 +02:00
Thomas Waldmann e5ea016115 repository: set/query flags, iteration over flagged items (NSIndex)
use this to query or set/clear flags in the "extra" word.

also: remove direct access to the "extra" word, adapt tests.
2022-06-14 14:48:56 +02:00
Thomas Waldmann bf9f42320e repository: sync write file in get_fd
this fixes a strange test failure that did not happen until now:
it could not read the MAGIC bytes from a (quite new) segment file,
it just returned the empty string.

maybe its appearance is related to the removed I/O calls.
2022-06-14 14:48:56 +02:00
Thomas Waldmann 3ce3fbcdff repository index: add payload size (==csize) and flags to NSIndex entries
This saves some segment file random IO that was previously necessary
just to determine the size of to be deleted data.

Keep old one as NSIndex1 for old borg compatibility.
Choose NSIndex or NSIndex1 based on repo index layout from HashHeader.

for an old repo index repo.get(key) returns segment, offset, None, None
2022-06-14 14:48:56 +02:00