1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00
Commit graph

7301 commits

Author SHA1 Message Date
Thomas Waldmann
2288ee04fe move prune cmd tests to own module 2022-09-12 02:53:02 +02:00
Thomas Waldmann
4171e38d44 move key cmd tests to own module 2022-09-12 02:33:37 +02:00
Thomas Waldmann
c09ce2cb55 move delete/rdelete cmd tests to own modules 2022-09-12 02:05:25 +02:00
Thomas Waldmann
185951fb57 move diff cmd tests to own module 2022-09-12 01:42:36 +02:00
Thomas Waldmann
dadbe0ddf3 move check cmd tests to own module 2022-09-12 01:03:16 +02:00
Thomas Waldmann
c4a1cc5bb0 remove unused imports 2022-09-12 00:51:25 +02:00
Thomas Waldmann
d762833cd6 move debug cmd tests to own module 2022-09-12 00:50:12 +02:00
Thomas Waldmann
5beb3857f8 move tar and --bypass-lock tests to own modules 2022-09-12 00:03:26 +02:00
Thomas Waldmann
bef65e5722 make borg.testsuite.archiver a package
git mv archiver.py archiver/__init__.py

+ adapt import levels + adapt filenames
2022-09-12 00:03:26 +02:00
TW
1453b50b6f
Merge pull request #7018 from ThomasWaldmann/rel200b2
release 2.0.0b2
2022-09-10 23:38:44 +02:00
Thomas Waldmann
208475f707 xattrs: adapt tests to new error msgs 2022-09-10 22:06:34 +02:00
Thomas Waldmann
c27df634f1 vagrant: remove outdated netbsd hack, not needed any more
(same change as in 1.2-maint)
2022-09-10 18:21:17 +02:00
Thomas Waldmann
d39ecf4640 requirements: use latest Cython, tox 3.25.1
also remove the exclusion of the meanwhile outdated
broken Cython 0.27.

use tox 3.25.1 (as in 1.2-maint)
2022-09-10 18:15:45 +02:00
Thomas Waldmann
18ca2ab3ce build_usage build_man 2022-09-10 18:15:45 +02:00
Thomas Waldmann
c8964e92fd update CHANGES 2022-09-10 18:15:45 +02:00
TW
4c5bcf5e43
Merge pull request #7019 from bket/openssl_statically_linked
OpenBSD only - statically link OpenSSL (#6474)
2022-09-10 18:13:34 +02:00
Björn Ketelaars
730fca5bcc OpenBSD only - statically link OpenSSL (#6474)
Avoid conflicting with shared libcrypto from the base OS pulled in via
dependencies.
2022-09-10 17:49:24 +02:00
TW
b6469bb7d7
Merge pull request #7017 from ThomasWaldmann/remove-stretch64
Revert "re-add stretch64 vm, fixes #7010"
2022-09-10 15:32:45 +02:00
Thomas Waldmann
8d8a672895 Revert "re-add stretch64 vm, fixes #7010"
This reverts commit 7fec5ff051.
2022-09-10 15:26:26 +02:00
TW
bbe910091e
Merge pull request #7015 from ThomasWaldmann/update-changes
update CHANGES
2022-09-10 13:46:42 +02:00
Thomas Waldmann
057db79b44 update CHANGES 2022-09-10 01:06:42 +02:00
TW
c258eb45f4
Merge pull request #7008 from KN4CK3R/forwardport-6990
xattrs / extended stat: improve exception handling (master)
2022-09-10 00:52:38 +02:00
Thomas Waldmann
65a0d7fbca cosmetic: concat strings 2022-09-10 00:27:26 +02:00
TW
9ba03f0468
Merge pull request #7013 from ThomasWaldmann/replace-placeholders
refactor replace_placeholders, fixes #6966
2022-09-10 00:23:44 +02:00
TW
d02baed852
Merge pull request #7014 from ThomasWaldmann/revive-stretch64-vm
re-add stretch64 vm, fixes #7010
2022-09-10 00:23:27 +02:00
Thomas Waldmann
7fec5ff051 re-add stretch64 vm, fixes #7010
looks like rhel7 and co is still supported and needs the old glibc.

debian stretch is not supported any more by debian, so the binaries
created on this are provided on a "use on your own risk" basis.

reverts fc67453bf3
2022-09-09 23:55:28 +02:00
Thomas Waldmann
d3a2d831b7 refactor replace_placeholders, fixes #6966
fix replacing placeholders in archive name, --comment and --glob-archives values (even if overridden by other options like
--timestamp).

add test.
2022-09-09 23:28:34 +02:00
TW
c5352000a7
Merge pull request #7012 from ThomasWaldmann/separate-encrypted-metadata
2 more things...
2022-09-09 22:53:01 +02:00
Thomas Waldmann
f647fa9f08 transfer: check if correct upgrader class is used for v1 repos 2022-09-09 21:20:35 +02:00
Thomas Waldmann
bca36db0a1 transfer: fix csize/psize for obfuscated chunks 2022-09-09 21:20:35 +02:00
TW
36e852457a
Merge pull request #6992 from ThomasWaldmann/separate-encrypted-metadata
Separate encrypted metadata
2022-09-09 21:16:13 +02:00
Thomas Waldmann
c8830cde44 update docs 2022-09-08 22:26:23 +02:00
Thomas Waldmann
5afe94883a segment entry payload, metadata length: 16bit is enough
guess we will not have much more than size, csize, psize, ctype, clevel.
2022-09-08 21:52:19 +02:00
Thomas Waldmann
b28d6ee657 recompress: only read metadata to check for ctype/clevel 2022-09-08 20:47:40 +02:00
Thomas Waldmann
06eab6a228 RepositoryCache: cache complete and meta-only chunks separately 2022-09-08 19:38:18 +02:00
Thomas Waldmann
106abbe4d9 new read_data param for repository.get() and .get_many()
True (default): return full chunk (client can decrypt meta and data)

False: return enough so client can decrypt only the meta
2022-09-08 18:31:56 +02:00
Thomas Waldmann
74ffceabf4 simplify: read_data param of io.read() is not used (yet) 2022-09-08 13:17:59 +02:00
Thomas Waldmann
b64427c480 simplify: iter_objects always returns (..., size, data)
data might be None (if read_data is False).

also removed the include_data argument, not needed any more.
2022-09-08 12:48:39 +02:00
Thomas Waldmann
e827f98c45 transfer: add test
bit hard to test the 1.2 -> 2.0 transfer, but we can at least
test the 2.0 -> 2.0 "NoOp" transfer.
2022-09-07 21:10:54 +02:00
Thomas Waldmann
cf333cef91 upgrader fixes for new api 2022-09-07 20:27:03 +02:00
Thomas Waldmann
4c9ed2a6c6 refactor compressors to new api
legacy: add/remove ctype/clevel bytes prefix of compressed data

new: use a separate metadata dict

compressors: use an int as ID, not a len 1 bytestring
2022-09-07 19:23:47 +02:00
Thomas Waldmann
1e156ca02b fix upgrader 2022-09-07 19:23:11 +02:00
TW
68e43911f5 Merge pull request #6990 from ThomasWaldmann/more-fine-grained-extended-stat-1.2
xattrs / extended stat: improve exception handling (1.2-maint)
2022-09-07 09:34:52 +02:00
Thomas Waldmann
b6cbf045ff add a test for borg 1 -> 2 repo objects transformation 2022-09-05 22:17:51 +02:00
Thomas Waldmann
754c583799 decompression dispatching based on meta dict 2022-09-05 22:14:40 +02:00
Thomas Waldmann
fa986a9f19 repoobj: add a layer to format/parse repo objects
borg < 2:

obj = encrypted(compressed(data))

borg 2:

obj = enc_meta_len32 + encrypted(msgpacked(meta)) + encrypted(compressed(data))

handle compr / decompr in repoobj

move the assert_id call from decrypt to RepoObj.parse

also:
- for AEADKeyBase, add a dummy assert_id (not needed here)
- only test assert_id for other if not AEADKeyBase instance
- remove test_getting_wrong_chunk. assert_id is called elsewhere
  and is not needed any more anyway with the new AEAD crypto.
- only give manifest (includes key, repo, repo_objs)
- only return manifest from Manifest.load (includes key, repo, repo_objs)
2022-09-04 00:49:38 +02:00
TW
3a8354059c
Merge pull request #6998 from ThomasWaldmann/fix-typos
repository: start messages with uppercase letters.
2022-09-02 00:52:41 +02:00
Thomas Waldmann
062c860260 repository: start messages with uppercase letters. 2022-09-01 22:28:00 +02:00
TW
6c6f10df1e
Merge pull request #6986 from ThomasWaldmann/flags-repo-api
repository api: flags support, fixes #6982
2022-08-22 18:45:21 +02:00
Thomas Waldmann
90ca04f535 repository api: flags support, fixes #6982
- .list: only return IDs for objects where flags & mask == value.
- .flags(_many) (new) to set/query flags
2022-08-22 18:16:59 +02:00