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
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
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
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
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
Thomas Waldmann
c01f3527e5
fix linter errors
2022-06-14 15:42:30 +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
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
Thomas Waldmann
ba1f8926cc
secure_erase: avoid collateral damage, fixes #6768
...
if a hardlink copy of a repo was made and a new repo config
shall be saved, do NOT fill in random garbage before deleting
the previous repo config, because that would damage the hardlink
copy.
2022-06-13 15:57:01 +02:00
Thomas Waldmann
75ad3b8e35
remove csize expectation from do_transfer upgrade_item
...
the size is already remove via Item._update_internal method.
2022-06-12 17:50:12 +02:00
Thomas Waldmann
822aefc7b0
re-add dsize placeholder
2022-06-12 17:15:13 +02:00
Thomas Waldmann
49adb77157
calc_stats: deduplicated size now, was deduplicated csize
...
also: remove pre12_meta cache
2022-06-12 17:15:13 +02:00
Thomas Waldmann
19dfbe5c5c
compute the deduplicated size before compression
...
so we do not need csize for it.
2022-06-12 17:15:13 +02:00
Thomas Waldmann
1fd571a4d0
fix comments
2022-06-12 17:15:13 +02:00
Thomas Waldmann
2c1f7951c4
remove csize from ChunkIndexEntry
2022-06-12 17:15:13 +02:00
Thomas Waldmann
b82a39c3b3
remove csize from stats_against()
2022-06-12 15:48:33 +02:00
Thomas Waldmann
0211948cac
remove csize from summarize return tuple
2022-06-12 15:48:33 +02:00
Thomas Waldmann
b726aa5665
remove csize support from get_size
2022-06-12 15:48:33 +02:00
Thomas Waldmann
ace5957524
remove csize from item.chunks elements
2022-06-12 15:48:33 +02:00
Thomas Waldmann
b9f9623a6d
prepare to remove csize (set it to 0 for now)
2022-06-12 15:48:33 +02:00
Thomas Waldmann
d4ee968b07
use borg 2.0 to refer to this, not 1.3
...
also, some type conversions are now done in update_internal once,
not in the decode methods of the classes in item.pyx.
2022-06-09 18:13:40 +02:00
Thomas Waldmann
08228fbd32
Item: remove unused hardlink_masters param
2022-06-09 17:57:28 +02:00