Commit Graph

7986 Commits

Author SHA1 Message Date
Thomas Waldmann 1fb1cc3ea3
tests: check buzhash chunksize distribution, see #7586 2023-05-23 00:20:28 +02:00
jetchirag eeefa55428
do not crash for empty archives list in borg rlist date based matching (#7544)
fix ValueError for empty archives list, add a test

Signed-off-by: Chirag Aggarwal <thechiragaggarwal@gmail.com>
2023-05-20 12:30:03 +02:00
TW ed2bc8a8e0
Merge pull request #7593 from ThomasWaldmann/fix-repo-reopen-master
tests: fix repo reopen (master)
2023-05-20 01:55:58 +02:00
Thomas Waldmann b9d0f00099
RepositoryTestCaseBase: remove need for "with" after reopen()
setUp enters the context manager, so let's .reopen() leave it.
then create a fresh Repository instance in self.repository and
enter the context manager again. tearDown then will leave that.
2023-05-20 01:31:07 +02:00
Thomas Waldmann f0e4be76b1
RepositoryTestCaseBase: call __exit__
As we call __enter__ in setUp,
let's call __exit__ in tearDown.
2023-05-20 01:31:05 +02:00
Thomas Waldmann 3d82be0b58
fix RepositoryTestCaseBase.reopen method
"if self.repository" did not work as expected:
- Repository has a __len__ method, so the boolean evaluation was calling that.
- self.repository is also not set to None anywhere.
2023-05-20 01:30:14 +02:00
TW 27f2dffdf8
Merge pull request #7591 from ThomasWaldmann/update-changes-master
update CHANGES
2023-05-19 23:21:21 +02:00
Thomas Waldmann 989017a222
update CHANGES 2023-05-19 22:05:18 +02:00
TW 7a13a98f04
Merge pull request #7583 from ThomasWaldmann/security-dir-in-data
put security infos into data dir, fixes #5760
2023-05-19 21:43:35 +02:00
Thomas Waldmann 989b0a2847
use correct path for security dir when accessing legacy repos (v1)
while on macOS the new and old security dir location is the same path,
this is not the case on e.g. Linux, it could move from .config/borg/security to
.local/share/borg/security .

See #5760.
2023-05-19 21:12:59 +02:00
Thomas Waldmann c8996aaf12
BORG_DATA_DIR / BORG_SECURITY_DIR docs update 2023-05-18 12:48:47 +02:00
Thomas Waldmann b8d49a0274
put security infos into data dir, fixes #5760 2023-05-18 12:48:45 +02:00
TW 852172f5ce
Merge pull request #7584 from ThomasWaldmann/test-cosmetics-master
tests: avoid long ids in pytest output
2023-05-18 12:44:26 +02:00
Thomas Waldmann b0b32e35f5
tests: avoid long ids in pytest output
sometimes the automatically computed IDs are just too long,
so rather give IDs directly or avoid them otherwise.
2023-05-18 05:46:33 +02:00
TW f5c9f23467
Merge pull request #7582 from ThomasWaldmann/vagrant-updates-master
Vagrant updates master
2023-05-17 01:04:39 +02:00
Thomas Waldmann 7bb644e997
tox: package = editable-legacy, fixes #7580 2023-05-17 01:01:05 +02:00
Thomas Waldmann 0744b7a241
fix test_extract_continue for hfs timestamp granularity 2023-05-17 00:19:42 +02:00
Thomas Waldmann 863bd8a4f4
vagrant: upgrade pythons
e.g. on freebsd13, <3.9.10 has sysconfigdata issues
2023-05-16 23:28:36 +02:00
TW 7e0221d3a2
Merge pull request #7577 from ThomasWaldmann/fix-test-extract-continue
fix test_extract_continue
2023-05-16 19:57:23 +02:00
Thomas Waldmann 82ccf0c08c
fix test_extract_continue
make a hardlink to keep the inode allocated,
so it can not re-use the same inode when it
(deletes and re)creates the file.
2023-05-16 19:12:46 +02:00
TW 5566e912b2
Merge pull request #7576 from ThomasWaldmann/dev-requirments-master
update development.lock.txt
2023-05-16 19:11:08 +02:00
Thomas Waldmann 8867f6d640
update development.lock.txt
main reason was tox crashing:

https://github.com/tox-dev/tox/issues/2829

cython 0.29.34 for py312 support.
2023-05-16 17:35:59 +02:00
TW 2373d52aa5
Merge pull request #7575 from ThomasWaldmann/setup-fixes-master
Setup fixes (master)
2023-05-16 15:06:47 +02:00
Thomas Waldmann 7bcc4ec884
add wheel to dev requirements
looks like tox prefers to have it in the host
environment.
2023-05-16 14:30:34 +02:00
Thomas Waldmann efc69eab80
tox under fakeroot: fix finding setup_docs, fixes #7391 2023-05-16 14:28:51 +02:00
Thomas Waldmann 05cfbf67bc
setup.cfg: remove setup_requires, fixes #7574 2023-05-16 13:38:15 +02:00
TW 4d7c7b0fcb
Merge pull request #7571 from ThomasWaldmann/match-archives-docs
docs: fix some -a / --match-archives issues
2023-05-16 10:13:19 +02:00
Thomas Waldmann 8e6c504654
docs: fix some -a / --match-archives issues
at some places, the docs were not updated yet.

for borg 1.x, -a (aka --glob-archives) expected
sh: style glob patterns ONLY (but one must not
give sh: explicitly).

for borg 2, -a (aka --match-archives) defaults
to id: style (identical match), so one must give
sh: if one wants shell-style globbing.
2023-05-16 00:50:50 +02:00
TW 79743d0503
Merge pull request #7569 from elandorr/master
incl./excl. options, path-from-stdin exclusiveness
2023-05-15 21:47:33 +02:00
elandorr bfe6e0da5d
Update create_cmd.py 2023-05-15 11:49:22 +00:00
elandorr c83507eb0c
mention paths-from-stdin's exclusiveness 2023-05-14 19:24:55 +00:00
elandorr 4fb2f2151e
include/exclude options 2023-05-14 19:23:15 +00:00
TW 8c9ad4172a
Merge pull request #7565 from elandorr/master
doc markup fixes
2023-05-14 18:59:15 +02:00
elandorr e086d2a8f6
markup fix + note about MAX_DATA_SIZE 2023-05-14 07:14:48 +00:00
elandorr 8e2f5a621b
escape 2023-05-14 07:09:45 +00:00
TW b70cefa474
Merge pull request #7556 from ThomasWaldmann/kill-nonce-manager
remove nonce management, related repo methods
2023-05-12 00:00:29 +02:00
TW dc0112ce44
Merge pull request #7557 from ThomasWaldmann/crypto-cleanup
cosmetic crypto cleanup
2023-05-11 23:55:30 +02:00
Thomas Waldmann f970679b62
low_level crypto: fix borg version in comments 2023-05-11 20:10:55 +02:00
Thomas Waldmann 44f58b0870
low_level crypto: minor cleanup
HMAC is not used, we use hmac from py stdlib.
2023-05-11 20:09:47 +02:00
Thomas Waldmann e02d9edc34
remove nonce management, related repo methods
not needed for borg2 repos (we derive a new session key for each borg
invocation and start counting from 0).

also not needed for borg 1.x repos because we only read them (borg transfer)
and won't write new encrypted data to them.
2023-05-11 17:51:49 +02:00
TW 8ba04bbf37
Merge pull request #7555 from ThomasWaldmann/update-changes-master
update CHANGES
2023-05-10 21:27:52 +02:00
Thomas Waldmann 7c7501acd8
update CHANGES 2023-05-10 20:50:36 +02:00
TW c7aa0cc5d9
Merge pull request #7554 from ThomasWaldmann/vagrant-updates
vagrant: add lunar64 VM
2023-05-10 17:41:38 +02:00
Thomas Waldmann 2dc0085870
vagrant: add lunar64 VM 2023-05-10 17:40:15 +02:00
TW 49fe6f34aa
Merge pull request #7540 from ThomasWaldmann/transfer-recompress
borg transfer --compression=C --recompress=M, fixes #7529
2023-05-06 22:00:28 +02:00
Thomas Waldmann 0b62338d4a
borg transfer --compression=C --recompress=M, fixes #7529 2023-04-24 23:46:38 +02:00
TW e302fd9da6
Merge pull request #7488 from centic9/master
Describe performing pull-backups via ssh remote forwarding
2023-04-18 18:34:46 +02:00
TW ee9bf28df9
Merge pull request #7524 from ThomasWaldmann/test-no-backslashes
tests: check for posix-like paths in archives, see #7120
2023-04-18 18:21:48 +02:00
TW cca8280393
Merge pull request #7526 from ThomasWaldmann/continue-extract-master
extract --continue
2023-04-17 22:28:24 +02:00
Thomas Waldmann 573275e678
extract --continue: continue a previously interrupted extraction, fixes #1356
This skips over all previously fully extracted regular files,
but will delete and fully re-extract incomplete files.
2023-04-16 21:09:48 +02:00