1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-21 23:33:07 +00:00
Commit graph

8907 commits

Author SHA1 Message Date
Thomas Waldmann
fb22e76573
adapt to borghash recent api cleanup 2024-10-26 19:25:14 +02:00
Thomas Waldmann
9775adf52b
implement .clear 2024-10-26 19:09:12 +02:00
Thomas Waldmann
68143d6f99
hashindex: remove .compact
our on disk formats only store used keys/values,
so they are always compact on-disk.
2024-10-26 00:47:43 +02:00
Thomas Waldmann
3c794fa980
hashindex: simplify .pop 2024-10-26 00:37:00 +02:00
Thomas Waldmann
bdf2602e7c
hashindex: simplify .get 2024-10-26 00:30:32 +02:00
Thomas Waldmann
d2fe067647
import directly from borghash 2024-10-26 00:18:36 +02:00
Thomas Waldmann
b7035f188b
remove _endian.h, not used anymore 2024-10-25 19:19:02 +02:00
Thomas Waldmann
ab08eea196
remove hashindex tests from selftests
there isn't much left anyway, testing the core hashtable
functionality now happens in borghash project.

Also: switch these tests to pytest.
2024-10-25 19:14:57 +02:00
Thomas Waldmann
03596e3651
remove unused _hashindex.c, update setup.py
also the hash_sizes.py script, which was used for _hashindex.c.
2024-10-25 19:03:38 +02:00
Thomas Waldmann
5996b45b1d
hashindex: cleanup .pyi 2024-10-25 18:29:41 +02:00
Thomas Waldmann
bacb923571
hashindex: cleanups, docstrings 2024-10-25 18:20:54 +02:00
Thomas Waldmann
2c9a5a7bb7
legacyrepository: remove quota tracking tests, fix other tests 2024-10-25 18:09:12 +02:00
Thomas Waldmann
7fffb0dbb1
hashindex: add NSIndex1 write support, fix iteritems
to get the unit tests working, we better have write support for the
borg 1.x format.

iteritems grew support for the marker kwarg.
2024-10-25 18:02:56 +02:00
Thomas Waldmann
64bda1a636
misc cleanups
- remove more hashindex tests
- remove IndexBase, _hashindex.c remainders
- remove early borg2 NSIndex
- remove hashindex_variant (we only support borg 1.x repo index
  aka NSIndex1, everything else uses the borghash based stuff)
- adapt code / tests so they use NSIndex1 (not NSIndex)
- minor fixes
- NSIndex1 can read the old borg 1.x on-disk format, but not write it.
- NSIndex1 can read/write the new borghash on-disk format.
- adapt legacyrepository code to work with NSIndex1 (segment, offset)
  values instead of NSIndex (segment, offset, size).
2024-10-25 17:03:49 +02:00
Martin Richtarsky
f656f6b1f2 docs: Small changes regarding compression
- Mention zstd as the best general choice when not using lz4
  (as often acknowledged by public benchmarks)
- Mention 'auto' more prominently as a good heuristic to improve
  speed while retaining good compression
- Link to compression options
2024-10-25 07:44:26 +02:00
Thomas Waldmann
57e46cdfe5
remove NSIndex1a 2024-10-25 03:33:27 +02:00
Thomas Waldmann
7bb6b3ebfe
NSIndex1: use borghash.HashTableNT
Also:
- have a small wrapper class NSIndex1 around HashTableNT to
  adapt API difference and add some special methods.
- keep old code as NSIndex1a
2024-10-25 03:29:46 +02:00
Thomas Waldmann
ca582b640c
FuseVersionsIndex: use borghash.HashTableNT
Also:
- have a small wrapper class FuseVersionsIndex around HashTableNT to
  adapt API difference and add some special methods.
2024-10-24 23:59:53 +02:00
Thomas Waldmann
ad5b18008d
ChunkIndex: use borghash.HashTableNT
Also:
- remove most hashindex tests, borghash has such tests
- have a small wrapper class ChunkIndex around HashTableNT to
  adapt API difference and add some special methods.

Note: I needed to manually copy the .pxd files from borghash
into cwd, because they were not found:
- ./borghash.pxd
- borghash/_borghash.pxd
2024-10-24 23:35:32 +02:00
TW
f7f2f23a7c
Merge pull request #8489 from ThomasWaldmann/fix-8485
lock after checking repo exists, fixes #8485
2024-10-24 02:41:29 +02:00
TW
44aab3fca6
Merge pull request #8488 from ThomasWaldmann/py313
CI: use "3.13" (w/o "-dev")
2024-10-24 00:16:31 +02:00
TW
defb7237ed
Merge pull request #8487 from ThomasWaldmann/fix-8486
prune: fix exception when NAME is given, fixes #8486
2024-10-24 00:13:23 +02:00
Thomas Waldmann
9130baf973
lock after checking repo exists, fixes #8485 2024-10-24 00:06:45 +02:00
Thomas Waldmann
e1347ef9ab
CI: use "3.13" (w/o "-dev") 2024-10-23 23:21:18 +02:00
Thomas Waldmann
75b8030ed5
prune: fix exception when NAME is given, fixes #8486 2024-10-23 22:51:35 +02:00
Martin Richtarsky
411f6f3222 docs: Remove --bypass-lock 2024-10-22 08:44:56 +02:00
TW
d510555b1b
Merge pull request #8481 from ThomasWaldmann/updates-changes
update CHANGES
2024-10-19 04:11:33 +02:00
Thomas Waldmann
b6eb5b239f
update CHANGES 2024-10-19 03:49:28 +02:00
TW
b00ae897f1
Merge pull request #8477 from ThomasWaldmann/non-existing-repo-errors
simple error msg for non-existing repo, fixes #8475
2024-10-16 18:41:18 +02:00
Thomas Waldmann
a49de25fe3
simple error msg for non-existing repo, fixes #8475
do not show a traceback for this (expected) case.
2024-10-16 17:13:53 +02:00
TW
dfbd3b7d5f
Merge pull request #8472 from ThomasWaldmann/borgstore010
changes needed for borgstore 0.1.0
2024-10-15 21:56:08 +02:00
Thomas Waldmann
7be254efe5
github CI: temporarily disabled windows CI, #8474 2024-10-15 20:36:17 +02:00
Thomas Waldmann
f6f8c678e8
msys2: use pyinstaller 6.10.0 2024-10-15 19:06:34 +02:00
Thomas Waldmann
e8dbcb3bfa
msys2: install rclone 2024-10-15 19:05:27 +02:00
Thomas Waldmann
703c98dbc9
create: catch StoreBackendAlreadyExists
Don't show traceback if a repo at the given location already exists.
2024-10-15 14:30:11 +02:00
Thomas Waldmann
ffdc9581d9
"file:" Location: use absolute path 2024-10-15 01:21:41 +02:00
Thomas Waldmann
6adf18d97c
update URL docs 2024-10-14 23:30:12 +02:00
Thomas Waldmann
858fbae9a9
Location: simplify regexes, parsing
There were still some relicts from pre-borgstore / borg 1.x in there:
- patterns about "::", used to be separator between repository and archive.
- patterns for //server/share (not supported by borgstore)

Also: unified ssh+sftp and file+socket processing.
2024-10-14 23:16:24 +02:00
Thomas Waldmann
835b2657cd
new ssh: URLs, see #8372
ssh://user@host:port/rel/path
ssh://user@host:port//abs/path

remove the /./ and /~/ hacks.
2024-10-14 19:59:13 +02:00
Thomas Waldmann
72fc028142
to_key_filename: generate different filenames for rel/abs paths 2024-10-14 19:59:11 +02:00
Thomas Waldmann
d60303eb8c
new sftp: URLs, see #8372
sftp://user@host:port/rel/path
sftp://user@host:port//abs/path
2024-10-14 19:59:10 +02:00
Thomas Waldmann
83414b037d
new rclone: URLs, fixes #8446
rclone:remote:path
2024-10-14 19:58:38 +02:00
Thomas Waldmann
4e576d51c7
repo-create: write empty ChunkIndex to repo/cache/, docs 2024-10-14 19:57:59 +02:00
Thomas Waldmann
7f79b65e39
require borgstore ~= 0.1.0 2024-10-13 21:10:47 +02:00
TW
dd7ce48bd5
Merge pull request #8470 from ThomasWaldmann/assert-rewrite
call register_assert_rewrite before importing borg.testsuite
2024-10-12 19:39:32 +02:00
Thomas Waldmann
2b06ac50a1
move conftest one level higher
if it is inside borg.testsuite, we can't rewrite asserts in there.
2024-10-12 18:26:48 +02:00
Thomas Waldmann
450375167e
call register_assert_rewrite before importing borg.testsuite 2024-10-12 18:05:17 +02:00
TW
e376b7f2fa
Merge pull request #8469 from ThomasWaldmann/special-tags
implement special tags, @PROT for protecting archives
2024-10-10 13:37:39 +02:00
Thomas Waldmann
3fb5d3f227
recreate: do not recreate protected archives 2024-10-10 00:35:12 +02:00
Thomas Waldmann
9d187d61ce
delete/prune: do not delete/prune protected archives 2024-10-10 00:34:42 +02:00