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
targhs
35c031ed2c
Correct shell syntax for installation using git
2022-06-12 20:19:31 +05:30
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
TW
a55f3f7285
Merge pull request #6762 from Maltimore/docs_line_continuation
...
[DOCS] Remove unnecessary/dangerous line continuation
2022-06-11 20:17:55 +02:00
Maltimore
4902398554
[DOCS] Remove unnecessary/dangerous line continuation
2022-06-10 21:21:52 +03:00
TW
2c9be35886
Merge pull request #6704 from ThomasWaldmann/msgpack-str-bytes-cleanup
...
borg2: cleanup msgpack related str/bytes mess
2022-06-09 18:18:13 +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
Thomas Waldmann
421d4bdfb0
docs: fix bytes -> str in data-structures docs
2022-06-09 17:57:28 +02:00
Thomas Waldmann
58009f6773
Key: fix once, remove decode=...
2022-06-09 17:57:28 +02:00
Thomas Waldmann
ed22f721f3
EncryptedKey: fix once, remove decode=...
2022-06-09 17:57:28 +02:00
Thomas Waldmann
f2b085787b
Item: disallow None value for .user/group/chunks/chunks_healthy
...
If we do not know the value, just do not have that key/value pair in the item.
2022-06-09 17:57:28 +02:00
Thomas Waldmann
64cc16a9f4
Item: fix xattr processing
...
Item.xattrs is now always a StableDict mapping bytes keys -> bytes values.
The special casing of empty values (b'') getting replaced by None was removed.
2022-06-09 17:57:28 +02:00
Thomas Waldmann
9d684120a2
Item: assert type also in property getter
...
also: fixed Item.xattrs to be StableDict (not just a dict, as the
msgpack unpacker gives us)
2022-06-09 17:57:28 +02:00
Thomas Waldmann
7b138cc710
Item: convert timestamps once, get rid of bigint code
2022-06-09 17:57:28 +02:00
Thomas Waldmann
8e58525fc6
Item: remove some decode= params
...
update_internal() makes sure they have the desired type already.
2022-06-09 17:57:28 +02:00
Thomas Waldmann
655c1b9cc2
update docstrings / comments
2022-06-09 17:57:28 +02:00
Thomas Waldmann
33444be926
more str vs bytes fixing
2022-06-09 17:57:28 +02:00
Thomas Waldmann
8e87f1111b
cleanup msgpack related str/bytes mess, fixes #968
...
see ticket and borg.helpers.msgpack docstring.
this changeset implements the full migration to
msgpack 2.0 spec (use_bin_type=True, raw=False).
still needed compat to the past is done via want_bytes decoder in borg.item.
2022-06-09 17:57:28 +02:00
Thomas Waldmann
f8dbe5b542
cleanup msgpack related str/bytes mess, see #968
...
see ticket and borg.helpers.msgpack docstring.
2022-06-09 17:57:28 +02:00
TW
86fe8bdd57
Merge pull request #6703 from ThomasWaldmann/r2r-transfer
...
borg2: "borg transfer" cmd (and also getting rid of legacy)
2022-06-09 17:56:03 +02:00
Thomas Waldmann
c5540c2dd9
upgrade compressed chunk: fix treatment of ObfuscateSize chunks
...
the inner payload of ObfuscateSize chunks are compressed chunks and need
the same zlib fix and level patching as non-obfuscated compressed chunks.
2022-06-09 17:49:16 +02:00
Thomas Waldmann
72c68c49d0
obfuscation: fix byte order for size, fixes #6701
2022-06-09 17:49:16 +02:00
Thomas Waldmann
6584a92c81
compression: use the 2 bytes for type and level, fixes #6698
...
adapt borg transfer, transferred chunks are set to compression level "unknown".
2022-06-09 17:49:16 +02:00
Thomas Waldmann
32a3601e4a
compute hlid from inode / device
2022-06-09 17:49:16 +02:00
Thomas Waldmann
8798b0340a
use whitelist approach to make sure item._dict is clean
2022-06-09 17:49:16 +02:00
Thomas Waldmann
d3dfa3be30
use version 2 for new archives
...
but still be able to read v1 archives
for borg transfer.
2022-06-09 17:49:16 +02:00
TW
0e8c9941bb
Merge pull request #6747 from fantasya-pbem/docs/4776_FAW-swapped-targets
...
[DOCS] #4776 - FAQ: How to swap backup media
2022-06-05 18:20:36 +02:00
TW
eed5038922
Merge pull request #6750 from ThomasWaldmann/update-changes-rel1118-master
...
update CHANGES with 1.1.18 changelog
2022-06-05 18:09:03 +02:00
Thalian
c7c98ca0fd
[DOCS] #4776 - FAQ: How to swap backup media
...
fixes #4776
2022-06-05 18:05:16 +02:00
Thomas Waldmann
7634426195
update CHANGES with 1.1.18 changelog
2022-06-05 17:47:41 +02:00
TW
4ff0a29209
Merge pull request #6741 from fantasya-pbem/docs/5310_overhaul-help-patterns
...
docs: overhaul borg help patterns, fixes #5310
2022-06-05 10:36:33 +02:00
Thalian
421a7ef52f
[DOCS] #5310 - Overhaul borg help patterns
...
fixes #5310
2022-06-05 09:02:04 +02:00
TW
34bb4d904b
Merge pull request #6743 from ThomasWaldmann/msgpack104-master
...
msgpack 1.0.4 / py 3.11 (master)
2022-06-03 10:36:59 +02:00
Thomas Waldmann
c07afb26e4
add python 3.11 to pypi metadata
2022-06-03 10:05:04 +02:00
Thomas Waldmann
18a7debf75
CI: also test on python 3.11-dev
2022-06-03 10:05:04 +02:00
Thomas Waldmann
a970f000b0
allow msgpack 1.0.4, fixes #6716
2022-06-03 10:03:49 +02:00
TW
c4b05c18e0
Merge pull request #6739 from ThomasWaldmann/vagrant-updates-master
...
Vagrant updates (master)
2022-06-01 20:31:16 +02:00
Thomas Waldmann
de4b9198c3
vagrant: use python 3.9.13 for binary build
2022-06-01 19:56:52 +02:00
Thomas Waldmann
c00c48a27b
vagrant: use pyinstaller 4.10
...
when installed via pip, this automatically build the bootloader now.
2022-06-01 19:54:48 +02:00
Thomas Waldmann
bd005c11a2
vagrant/testing: upgrade development.lock.txt
...
esp. the Cython version upgrade to 0.29.30 is important for python 3.11.
2022-06-01 19:54:11 +02:00
Elmar Hoffmann
c2317c4cce
make constants for files cache mode more clear ( #6724 )
...
* make constants for files cache mode more clear
Traditionally, DEFAULT_FILES_CACHE_MODE_UI and DEFAULT_FILES_CACHE_MODE
were - as the naming scheme implies - the same setting, one being the UI
representation as given to the --files-cache command line option and the
other being the same default value in the internal representation.
It happended that the actual value used in borg create always comes from
DEFAULT_FILES_CACHE_MODE_UI (because that does have the --files-cache
option) whereas for all other commands (that do not use the files cache) it
comes from DEFAULT_FILES_CACHE_MODE.
PR #5777 then abused this fact to implement the optimisation to skip loading
of the files cache in those other commands by changing the value of
DEFAULT_FILES_CACHE_MODE to disabled.
This however also changes the meaning of that variable and thus redesignates
it to something not matching the original naming anymore.
Anyone not aware of this change and the intention behind it looking at the
code would have a hard time figuring this out and be easily mislead.
This does away with the confusion making the code more maintainable by
renaming DEFAULT_FILES_CACHE_MODE to FILES_CACHE_MODE_DISABLED, making the
new intention of that internal default clear.
* make constant for files cache mode UI default match naming scheme
2022-05-30 14:01:19 +02:00