Commit Graph

8510 Commits

Author SHA1 Message Date
TW 364eb87ae2
Merge pull request #8286 from pktiuk/patch-1
Add Open Collective to FUNDING.yml
2024-07-27 00:37:42 +02:00
Thomas Waldmann 69ce4bd9ee
add github sponsors
also: reorder
2024-07-26 23:51:36 +02:00
TW 929c642b6e
Merge pull request #8304 from ThomasWaldmann/improve-healing-test-master
improve borg check --repair healing tests, see #8302
2024-07-23 22:31:46 +02:00
Thomas Waldmann c6f95de492
improve borg check --repair healing tests, see #8302
test the healing more thoroughly:
- preservation of correct chunks list in .chunks_healthy
- check that .chunks_healthy is removed after healing
- check that doing another borg check --repair run does not find
  something to heal, again.

also did a datatype consistency fix for item.chunks_healthy list
members: they are now post processed in the same way as item.chunks,
so they have type ChunkListEntry rather than simple tuple.
2024-07-23 20:49:24 +02:00
TW 83aed450e9
Merge pull request #8293 from ThomasWaldmann/rel200b9
Release 2.0.0b9
2024-07-20 18:34:55 +02:00
Thomas Waldmann 84e87239bc
fix pypi repo name in upload script
it needs to be like this to support a ~/.pypirc like this,
containing a separate upload token for the borgbackup project:

[distutils]
index-servers =
    borgbackup
    ...

[borgbackup]
repository = https://upload.pypi.org/legacy/
username = __token__
password = pypi-...(token)...
2024-07-20 17:47:59 +02:00
Thomas Waldmann 7aabe8204c
fix binary_archiver tests for modern exit codes 2024-07-20 00:39:37 +02:00
Paweł Kotiuk f777263997 Add Open Collective and Liberapay to FUNDING.yml
Source: https://www.borgbackup.org/support/fund.html
2024-07-19 20:41:06 +00:00
Thomas Waldmann edfca29b97
build_usage / build_man 2024-07-19 20:40:15 +02:00
Thomas Waldmann 6778f2976a
update CHANGES 2024-07-19 20:39:32 +02:00
TW 4fe94bf77e
Merge pull request #8291 from ThomasWaldmann/key-export-filename-master
key export fixes (master)
2024-07-19 20:32:53 +02:00
Thomas Waldmann 4e6238e7d3
key export: fix exception handling
export_paperkey also must not get an already existing directory.
2024-07-19 19:55:14 +02:00
Thomas Waldmann 5eecdfa133
key export: fix crash when no path is given
In this case, the export functions output to stdout.

Also: add a note why this code is needed.
2024-07-19 19:48:25 +02:00
Thomas Waldmann 6211a3dc79
key export: move examples to docs 2024-07-19 19:44:38 +02:00
TW 4312a74c33
Merge pull request #8290 from ThomasWaldmann/modern-exit-codes-by-default
make BORG_EXIT_CODES="modern" the default, fixes #8110
2024-07-19 19:03:13 +02:00
Thomas Waldmann ecddbc6691
make BORG_EXIT_CODES="modern" the default. 2024-07-19 17:31:36 +02:00
TW 3c480d9057
Merge pull request #8289 from ThomasWaldmann/beta-notes-master
Beta testing notes / binary readme
2024-07-19 15:13:56 +02:00
TW 995ec3036a
Merge pull request #8288 from ThomasWaldmann/vagrant-machines-master
Vagrant machines updates (port to master)
2024-07-19 14:44:07 +02:00
Thomas Waldmann 044acfd5dd
add docs/binaries/00_README.txt
I usually just uploaded that into the GH release assets,
but let's also have it in git.
2024-07-19 14:43:30 +02:00
Thomas Waldmann 16c52040e4
README: add note about beta testing
not: "in production testing"
2024-07-19 14:41:37 +02:00
Thomas Waldmann a6fdb4dec0
vagrant: netbsd/openbsd: add version number 2024-07-19 14:16:22 +02:00
Thomas Waldmann 296c674fdf
vagrant: macos: add version number to call param 2024-07-19 14:16:07 +02:00
Thomas Waldmann f4367d66d8
vagrant: darwin -> macos
Also: add macOS version number.
2024-07-19 14:15:15 +02:00
Thomas Waldmann 445dd69eba
vagrant: adapt fetch-binaries script 2024-07-19 14:14:58 +02:00
Thomas Waldmann 0b660e0e75
vagrant: get rid of the "64" suffix for VM names.
We only have 64bit machines anyway. And even in the unlikely
case we would add 32bit machines, we could suffix them by "32".
2024-07-19 14:14:22 +02:00
Thomas Waldmann 273aaaf572
vagrant: use freebsd(13|14)_64 as VM name 2024-07-19 14:13:13 +02:00
Thomas Waldmann 3f5cb32328
add freebsd 13 box, fixes #8266
users of TrueNAS do not have fbsd 14 yet.
2024-07-19 14:11:57 +02:00
TW 0f83d0c51f
Merge pull request #8287 from ThomasWaldmann/update-changes-master
Update changes
2024-07-19 00:02:00 +02:00
Thomas Waldmann b1249ebe20
update CHANGES 2024-07-18 23:52:39 +02:00
Thomas Waldmann 4c76b67873
vagrant: use Python 3.11.9 2024-07-18 23:49:59 +02:00
Thomas Waldmann 70d1758e04
vagrant: use pyinstaller 6.7.0 2024-07-18 23:48:19 +02:00
TW 66b62c6fc9
Merge pull request #7846 from ThomasWaldmann/files-cache-with-size
files cache with size
2024-07-18 23:33:10 +02:00
Thomas Waldmann 619a06a5ba
BORG_CACHE_IMPL defaults to "adhocwithfiles" now
Also: support a "cli" env var value, that does not determine
the implementation from the env var, but rather from cli options (similar to as it was before adding BORG_CACHE_IMPL).
2024-07-18 22:51:17 +02:00
Thomas Waldmann 5a500cddf8
rename NewCache -> AdHocWithFilesCache 2024-07-18 22:14:00 +02:00
TW 55bf40db3b
Merge pull request #8285 from borgbackup/dependabot/pip/requirements.d/setuptools-70.0.0
build(deps-dev): bump setuptools from 69.2.0 to 70.0.0 in /requirements.d
2024-07-16 02:11:23 +02:00
dependabot[bot] 0fccd0bc0a
build(deps-dev): bump setuptools in /requirements.d
Bumps [setuptools](https://github.com/pypa/setuptools) from 69.2.0 to 70.0.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v69.2.0...v70.0.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 19:27:15 +00:00
Thomas Waldmann 78954b6487
skip tests not working with specific cache implementations 2024-07-15 12:45:17 +02:00
Thomas Waldmann 616af8daa8
BORG_CACHE_IMPL environment variable added
BORG_CACHE_IMPL allows users to choose the client-side cache implementation from 'local', 'newcache' and 'adhoc'.
2024-07-15 12:45:16 +02:00
Thomas Waldmann 72be8eff15
add comments to test_unknown_feature_on_cache_sync 2024-07-15 12:45:15 +02:00
Thomas Waldmann c7249583e7
fix test_cache_chunks
- skip test_cache_chunks if there is no persistent chunks cache file
- init self.chunks for AdHocCache
- remove warning output from AdHocCache.__init__, it gets mixed with JSON output and fails the JSON decoder.
2024-07-15 12:45:13 +02:00
Thomas Waldmann 561dcc8abf
Refactor cache sync options and introduce new cache preference
Add new borg create option '--prefer-adhoc-cache' to prefer the
AdHocCache over the NewCache implementation.

Adjust a test to match the previous default behaviour (== use the
AdHocCache) with --no-cache-sync.
2024-07-15 12:45:12 +02:00
Thomas Waldmann 85688e7543
keep timestamp only in security dir
removed some code borg had for backwards compatibility with
old borg versions (that had timestamp only in the cache).

now the manifest timestamp is only checked against the manifest-timestamp
file in the security dir, simplifying the code.
2024-07-15 12:45:09 +02:00
Thomas Waldmann 89d867ea30
keep key_type only in security dir
removed some code borg had for backwards compatibility with
old borg versions (that had key_type only in the cache).

now the repo key_type is only checked against the key-type
file in the security dir, simplifying the code.
2024-07-15 12:45:08 +02:00
Thomas Waldmann cf8c3a3ae7
keep previous repo location only in security dir
removed some code borg had for backwards compatibility with
old borg versions (that had previous_location only in the
cache).

now the repo location is only checked against the location
file in the security dir, simplifying the code and also
fixing a related test failure with NewCache.

also improved test_repository_move to test for aborting in
case the repo location changed unexpectedly.
2024-07-15 12:45:06 +02:00
Thomas Waldmann fbfa7cf7bf
fix test_recreate_rechunkify
We can not use unique_chunks counter with NewCache,
thus we use a simpler (and weaker) assertion.
2024-07-15 12:45:05 +02:00
Thomas Waldmann e3a0c4f375
fix check_cache and test_check_cache
NewCache and AdHocCache do not have a persistent chunks index,
so both check_cache and test_check_cache are pointless.
2024-07-15 12:45:03 +02:00
Thomas Waldmann ab6049e269
fix test_list_chunk_counts
NewCache does not do precise refcounting, thus it does not know about
unique chunks.

For now, let's just test num_chunks, but not unique_chunks.
2024-07-15 12:45:01 +02:00
Thomas Waldmann c73f6d4ff3
fix test_delete
NewCache does not do precise refcounting, thus chunks won't be deleted
from the repo at "borg delete" time.

"borg check --repair" would remove such chunks IF they are orphans.
2024-07-15 12:45:00 +02:00
Thomas Waldmann 86adc04da4
fix test_debug_refcount_obj for misc. refcounts 2024-07-15 12:44:59 +02:00
Thomas Waldmann 5136fa8fe3
fix test part that only works with LocalCache 2024-07-15 12:44:57 +02:00