Commit graph

9959 commits

Author SHA1 Message Date
TW
243e24567e
Merge pull request #9650 from mr-raj12/legacy-package-phase4
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
legacy: lazy-import legacy classes inside v1 branches only, refs #9556
2026-05-21 19:43:09 +02:00
Mrityunjay Raj
fc0b076870 testsuite: cover get_repository v1_or_v2 lazy-import branches, refs #9556 2026-05-19 04:03:59 +05:30
TW
adf7352695
Merge pull request #9652 from PhrozenByte/docs-slashdot-and-pattern-master
Some checks failed
Lint / lint (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI / windows_tests (push) Has been cancelled
Document the impact of the slashdot hack to pattern matching (master)
2026-05-17 22:13:20 +02:00
TW
ecc9ead889
Merge pull request #9653 from ThomasWaldmann/versioning-master
forward port #9608: handle invalid and dev versions in version parser
2026-05-17 22:12:49 +02:00
Thomas Waldmann
da0a2ff26f
fix: properly handle invalid and dev versions in version parser, fixes #9014
- `src/borg/__init__.py`: The `setuptools_scm` fallback version `0.1.dev1`
  was incorrectly bypassing the assertion check (as `0` and `1` are valid
  integers), which hid the intended helpful error message when building
  from source without tags. Added an explicit check for the `0.1.dev` prefix.

- `src/borg/version.py`: `parse_version` and `format_version` have been
  updated to correctly understand `setuptools_scm`'s `.dev` or `dev` prefixes.
  These dev releases are now properly encoded in the version tuple as `-9`
  (which logically makes them older than alphas `-4`, betas `-3`, rcs `-2`,
  and final `-1`), and correctly reformatted to `.dev` strings.

(cherry picked from commit 232ccabfa3)
2026-05-17 21:20:02 +02:00
Daniel Rudolf
ae7d286fdd
Document the impact of the slashdot hack to pattern matching
... or rather that the slashdot hack doesn't impact pattern matching at all. Add a note to `borg help patterns`.

(cherry picked from commit ae1440ed7e)
2026-05-17 13:28:54 +02:00
Mrityunjay Raj
9fa3b5f61d legacy: lazy-import legacy classes inside v1 branches only, refs #9556 2026-05-16 10:07:56 +05:30
TW
e2a651c684
contributing guide incl. AI policy, fixes #9409
Some checks failed
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI / windows_tests (push) Has been cancelled
2026-05-15 14:41:36 +02:00
TW
0a1570f2a8
Merge pull request #9644 from mr-raj12/legacy-archives-extract
Some checks failed
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
Lint / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
legacy: extract LegacyArchives into legacy/archives.py, add ArchivesInterface, refs #9556
2026-05-14 20:10:38 +02:00
Mrityunjay Raj
6659bd9e3f legacy: address review: fix docstrings, restore create() comment, add get_by_id test, refs #9556 2026-05-14 20:47:16 +05:30
TW
3db86906b7
Merge pull request #9633 from ThomasWaldmann/fix-fakeinput-usage-master
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
tests: make FakeInput usage less suspicious for code checkers
2026-05-14 00:29:47 +02:00
Mrityunjay Raj
bf756daaea legacy: extract LegacyArchives, add ArchivesInterface, drop self.legacy branches, refs #9556 2026-05-14 03:57:30 +05:30
TW
e134212231
Merge pull request #9636 from ThomasWaldmann/fix-test_key_export_repokey-master
fix test_key_export_repokey typo
2026-05-14 00:27:18 +02:00
TW
be78ec0983
Merge pull request #9638 from borgbackup/ai-findings-autofix/docs-deployment-pull-backup.rst
docs: pull-backup.rst minor fixes (master)
2026-05-14 00:26:21 +02:00
TW
620e2534b8
Apply suggested fix to docs/deployment/pull-backup.rst from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-14 00:18:42 +02:00
TW
b404c36ae0
Apply suggested fix to docs/deployment/pull-backup.rst from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-14 00:18:41 +02:00
TW
4fcc2cc1d2
Apply suggested fix to docs/deployment/pull-backup.rst from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-14 00:18:41 +02:00
Thomas Waldmann
07a1c341ca tests: make FakeInput usage less suspicious for code checkers 2026-05-13 23:41:55 +02:00
Thomas Waldmann
b5a0d77354 fix test_key_export_repokey typo 2026-05-13 23:36:43 +02:00
TW
ac88561323
Merge pull request #9637 from ThomasWaldmann/fix-docs-syntax-master
Some checks are pending
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
docs: fix rst syntax error
2026-05-13 23:35:44 +02:00
Thomas Waldmann
4a75a84bf3 docs: fix rst syntax error 2026-05-13 23:34:45 +02:00
TW
fbf6c766ca
Merge pull request #9632 from ThomasWaldmann/port-9629-to-master
Port PR #9629 to master: add a FAQ entry about scalability
2026-05-13 22:37:03 +02:00
Thomas Waldmann
abdd068db3 add a FAQ entry about scalability, fixes #4742
(cherry picked from commit 2dec0d32de)
2026-05-13 22:36:28 +02:00
TW
89128822d1
Merge pull request #9631 from borgbackup/backport-9630-to-master
[Backport master] docs: sshfs + chroot does support different CPU architectures, fixes #6878
2026-05-13 22:26:31 +02:00
Thomas Waldmann
f40878e1e7 docs: sshfs + chroot does support different CPU architectures, fixes #6878
(cherry picked from commit 49365617c4)
2026-05-13 20:19:46 +00:00
TW
316d774bbd
Merge pull request #9623 from ThomasWaldmann/port-9616-to-master
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
docs: forward port DoS warning for none mode (fixes #6715)
2026-05-13 13:06:36 +02:00
TW
28cf47313d
Merge pull request #9625 from ThomasWaldmann/port-9618-to-master
docs: forward port error handling documentation for create (fixes #4912)
2026-05-13 13:06:09 +02:00
TW
7227fbbde6
docs: forward port FAQ entry for full repository filesystem, fixes #9573 2026-05-13 10:30:12 +02:00
TW
274708de9c
docs: forward port FAQ entry for SSH connection timeouts, fixes #5629 2026-05-13 10:27:19 +02:00
TW
b942261751
Merge pull request #9626 from ThomasWaldmann/port-9619-to-master
docs: forward port FAQ entry for bad backups and deduplication (fixes #4744)
2026-05-13 10:26:47 +02:00
Thomas Waldmann
f02a47d022 docs: forward port FAQ entry for bad backups and deduplication (fixes #4744) 2026-05-13 10:16:43 +02:00
Thomas Waldmann
de0f7ac528 docs: forward port error handling documentation for create (fixes #4912) 2026-05-13 10:16:04 +02:00
Thomas Waldmann
d0167d8cdf docs: forward port DoS warning for none mode (fixes #6715) 2026-05-13 10:14:36 +02:00
TW
7c8fa4e787
Merge pull request #9621 from borgbackup/backport-9614-to-master
[Backport master] docs: improve macOS Keychain instructions (fixes #5156)
2026-05-13 10:03:39 +02:00
Thomas Waldmann
4dc21d7ed1 docs: improve macOS Keychain instructions (fixes #5156)
(cherry picked from commit fb8bab1c2d)
2026-05-13 07:56:52 +00:00
TW
a554fd4e18
Merge pull request #9611 from ThomasWaldmann/prune-stats-enhancement-master
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
prune: show total vs matching archives in output, fixes #9262
2026-05-13 00:35:49 +02:00
TW
38a1f9305d
Merge pull request #9609 from borgbackup/dependabot/pip/requirements.d/pip-26.1
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
build(deps-dev): bump pip from 26.0.1 to 26.1 in /requirements.d
2026-05-12 23:26:19 +02:00
Thomas Waldmann
1cb185a8e6
prune: show total vs matching archives in output, fixes #9262 2026-05-12 23:22:09 +02:00
TW
7b60edd0c0
Merge pull request #9598 from ThomasWaldmann/slashdot-root-master
Fix slashdot hack excluding source directory metadata, fixes #9534
2026-05-12 22:43:41 +02:00
dependabot[bot]
30c8cb9fd1
build(deps-dev): bump pip from 26.0.1 to 26.1 in /requirements.d
Bumps [pip](https://github.com/pypa/pip) from 26.0.1 to 26.1.
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/26.0.1...26.1)

---
updated-dependencies:
- dependency-name: pip
  dependency-version: '26.1'
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-12 20:37:09 +00:00
TW
0263d1deb7
Merge pull request #9607 from ThomasWaldmann/fix-dependabot-9603
build(deps-dev): bump pip-dependencies group (fix #9603 - virtualenv for tox 4.52.1)
2026-05-12 22:35:53 +02:00
Thomas Waldmann
6d3abf73a7 build(deps-dev): bump pip-dependencies group, fix virtualenv for tox 4.52.1
Include all changes from dependabot PR #9603 plus fix the broken
virtualenv pin: tox 4.52.1 requires virtualenv>=21.1, but PR #9603
kept virtualenv==20.39.1 (20.x). Bumped virtualenv to 21.3.2.

Fixes: https://github.com/borgbackup/borg/pull/9603
2026-05-12 20:03:23 +02:00
TW
022b499be8
Merge pull request #9605 from ThomasWaldmann/platform-fixes
platform fixes
2026-05-12 19:51:12 +02:00
TW
2d39046882
Merge pull request #9606 from ThomasWaldmann/remove-checksums-module
remove the superfluous borg.checksums module
2026-05-12 19:44:26 +02:00
TW
d73c11ac77
Merge pull request #9604 from ThomasWaldmann/chunker-fixes
chunker fixes
2026-05-12 18:42:27 +02:00
Thomas Waldmann
227484b679
remove the superfluous borg.checksums module 2026-05-12 18:41:34 +02:00
Thomas Waldmann
2bb9e4889b
macOS: fix TypeError when _get_birthtime_ns gets called with an FD
Crashed when trying to os.fsdecode(path) when path is an int.
2026-05-12 18:15:00 +02:00
Thomas Waldmann
b362b0898e
buzhash chunkers: add len==0 check to avoid buffer over-read
Isn't called by the higher level code with len==0,
but adding the check nevertheless for cleaner and
less suspicious code.
2026-05-12 17:30:07 +02:00
Thomas Waldmann
f94e3dea95
chunkers: check return value of malloc, raise MemoryError 2026-05-12 17:19:22 +02:00
TW
ca3e88f5b1
Merge pull request #9600 from mr-raj12/legacy-crypto-key-phase2
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
legacy: move legacy AES-CTR key classes into borg.legacy.crypto, refs #9556
2026-05-11 16:06:57 +02:00