Commit Graph

7107 Commits

Author SHA1 Message Date
Thomas Waldmann 4c131059bc
build_man 2023-12-02 01:02:03 +01:00
Thomas Waldmann 46c1e01d29
build_usage 2023-12-02 01:01:46 +01:00
Thomas Waldmann 8b70bb36c6
update CHANGES 2023-12-02 00:59:58 +01:00
TW e50d26757c
Merge pull request #7956 from ThomasWaldmann/py313-unistdh-1.2
include unistd.h in _chunker.c
2023-12-02 00:44:59 +01:00
TW d3e412c7c6
Merge pull request #7957 from ThomasWaldmann/docs-rebuild-refcounts-1.2
docs: Add "check.rebuild_refcounts" message
2023-12-02 00:23:25 +01:00
Sophie Herold 897f88dfaa
docs: Add "check.rebuild_refcounts" message 2023-12-02 00:01:12 +01:00
Felix Schwarz 13c6d1b710
include unistd.h in _chunker.c
With Python 3.13, Python.h no longer includes the <unistd.h> standard header file:
https://docs.python.org/3.13/whatsnew/3.13.html#id8
2023-12-01 23:58:24 +01:00
TW b2929b4cee
Merge pull request #7952 from ThomasWaldmann/update-changes-1.2
update CHANGES (1.2-maint)
2023-11-29 16:48:38 +01:00
Kevin Yin bcc8f74b56
Remove period that could be interpreted as part of the command (#7946)
CVE upgrade steps: remove period that could be interpreted as part of the command
2023-11-27 18:12:26 +01:00
Thomas Waldmann 4bdd404949
update CHANGES 2023-11-27 18:08:00 +01:00
TW 70eed5e9fc
Merge pull request #7939 from ThomasWaldmann/lockroster-remove-fix-1.2
LockRoster.modify fix (1.2-maint)
2023-11-18 17:35:22 +01:00
Thomas Waldmann ec17b00411
LockRoster.modify: no KeyError if element was already gone, fixes #7937
The intention of LockRoster.modify(key, REMOVE) is to remove self.id.

Using set.discard will just ignore it if self.id is not present there anymore.

Previously, using set.remove triggered a KeyError that has been frequently
seen in tracebacks of teardowns involving Repository.__del__ and Repository.__exit__.

I added a REMOVE2 op to serve one caller that needs to get the KeyError if
self.id was not present.

Thanks to @herrmanntom for the workaround!
2023-11-16 15:59:28 +01:00
zDEFz 2cefe8f53d
Add backup by SERIAL method (#7934)
docs: create disk/partition sector backup by disk serial number
2023-11-13 22:03:09 +01:00
TW 2341ba62d3
Merge pull request #7926 from ThomasWaldmann/update-requirements-1.2
update requirements.d/development.lock.txt
2023-11-09 02:19:51 +01:00
Thomas Waldmann f08386f699
update requirements.d/development.lock.txt 2023-11-09 00:46:12 +01:00
TW 4e349cf3fa
Merge pull request #7915 from ThomasWaldmann/fix-subcommand-env-1.2
create --*-from-command: run subcommands with a clean environment
2023-11-07 03:42:25 +01:00
Thomas Waldmann e006a6f368
create --*-from-command: run subcommands with a clean environment, fixes #7916
When borg invokes a system command, it needs to prepare the environment
for that. This is especially important when using a pyinstaller-made
borg fat binary that works with a modified env var LD_LIBRARY_PATH -
system commands may crash with that.

borg already had calls to prepare_subprocess_env at some places (e.g.
when invoking ssh for the remote repo connection), but they were
missing for:

borg create --content-from-command ...
borg create --paths-from-command ...
2023-11-06 17:41:52 +01:00
TW 11af475308
Merge pull request #7913 from ThomasWaldmann/docs-upgrade-chkpt-tam-1.2
CVE-2023-36811 upgrade docs: consider checkpoint archives, fixes #7802
2023-11-06 14:30:36 +01:00
Thomas Waldmann 9c886330d3
CVE-2023-36811 upgrade docs: consider checkpoint archives, fixes #7802
The traceback seen there came from borg not showing a .checkpoint archive
that didn't have a valid TAM and thus the user not see it / fix it:

https://github.com/borgbackup/borg/issues/7802#issuecomment-1793860606
2023-11-06 13:31:02 +01:00
TW 21d67b8295
Merge pull request #7904 from ThomasWaldmann/fix-shadow-index2-1.2
shadow index: add more comments
2023-11-05 01:24:47 +01:00
Thomas Waldmann 2a2b750b9d
shadow index: add more comments 2023-11-05 01:22:07 +01:00
TW a13504c6d5
Merge pull request #7903 from ThomasWaldmann/update-changes-1.2
update CHANGES (1.2-maint)
2023-11-04 18:05:03 +01:00
Thomas Waldmann d9a0deb227
update CHANGES 2023-11-03 18:43:22 +01:00
TW 686714c366
Merge pull request #7896 from ThomasWaldmann/fix-shadow-index-1.2
fix shadow index update for double-put (1.2-maint)
2023-11-03 14:42:57 +01:00
TW 55ee4e2d28
Merge pull request #7897 from ThomasWaldmann/check-fixes-shadow-index-1.2
check --repair fixes shadow_index (1.2-maint)
2023-11-03 14:42:39 +01:00
TW cf5c61644b
Merge pull request #7901 from ThomasWaldmann/update-docs-1.2
Update docs (1.2-maint)
2023-11-03 14:35:02 +01:00
Thomas Waldmann 6b928dac93
docs: not only attack/unsafe, can also be a fs issue, fixes #7853 2023-11-01 18:04:24 +01:00
Thomas Waldmann da4fcc5a66
docs: point to CVE-2023-36811 upgrade steps from borg 1.1 to 1.2 upgrade steps, fixes #7899
also: use 1.2.6 to refer to the fixed version

1.2.5 had issues and was superseded by 1.2.6 just 1 day later,
so we do not need to talk about that.

Also, the docs point out that:
"""
Below, if we speak of borg 1.2.6, we mean a borg version >= 1.2.6 **or** a
borg version that has the relevant security patches for this vulnerability applied
(could be also an older version in that case).
"""

So, it now just talks about "1.2.6" at the relevant places.
2023-11-01 18:04:22 +01:00
Thomas Waldmann 136e3ed1d6
docs: upgrade steps needed for all kinds of repos, fixes #7813
Repos with encryption=none of course can not do real authentication (because there is no secret key material to work with).

But the code always works the same way and such repos also use (and expect) TAMs, so the instructions should be followed in any case.
2023-11-01 18:04:20 +01:00
Thomas Waldmann a19ebe5ecc
docs: consequences of borg check, fixes #7816 2023-11-01 17:18:32 +01:00
Thomas Waldmann a7809429b3
check --repair: recreate shadow index, see #6687
before this fix, borg check --repair just created an
empty shadow index, which can lead to incomplete
entries if entries are added later.

and such incomplete (but present) entries can lead to
compact_segments() resurrecting old PUTs by accidentally
dropping related DELs.
2023-10-29 01:12:15 +02:00
Thomas Waldmann 48feb28e11
check --repair: test if shadow index is recreated
still failing here, because it is not.
2023-10-29 01:01:17 +02:00
Thomas Waldmann 8a8837e255
shadow index updates: simplify and more comments
no functional change here.
2023-10-28 17:36:10 +02:00
Thomas Waldmann b21ed3c658
update shadow index when doing a double-put, fixes #5661
this fixes the test added in previous commit (avoids
that the PUT reappears after index rebuild).
2023-10-28 17:17:47 +02:00
Thomas Waldmann 8e6449f28e
test the shadowing-by-double-put behaviour, see #5661
the new test is currently failing due to a bug in the
repository code.
2023-10-28 17:13:13 +02:00
TW c35cddeb7e
Merge pull request #7892 from ThomasWaldmann/ci-timeout-1.2
CI: increase timeout to 90min
2023-10-28 01:25:33 +02:00
Thomas Waldmann dff29627dc
CI: increase timeout to 90min
esp. the macOS CI jobs are sometimes rather slow,
so 40min were not enough.
2023-10-27 22:30:52 +02:00
TW b83525cd4c
Merge pull request #7891 from ThomasWaldmann/sort-by-aliases-1.2
--sort-by: support "archive" as alias of "name", fixes #7873 (1.2-maint)
2023-10-27 22:27:59 +02:00
TW fa7a6d7095
Merge pull request #7890 from ThomasWaldmann/doc-updates-1.2
doc updates (1.2-maint)
2023-10-27 22:25:59 +02:00
Thomas Waldmann 0e3773d8c7
--sort-by: support "archive" as alias of "name", fixes #7873 2023-10-27 20:46:03 +02:00
TW 75bc62e2ae
Merge pull request #7889 from ThomasWaldmann/udev-uuid-1.2
automated-local.rst: use GPT UUID for consistent udev rule (1.2-maint)
2023-10-27 20:33:57 +02:00
Thomas Waldmann 05cec8b3b0
docs: OS X -> macOS 2023-10-27 20:31:26 +02:00
Thomas Waldmann 7a4d53c2f5
docs: update macOS hint about full disk access 2023-10-27 20:28:57 +02:00
Thomas Waldmann 661e5cccd3
docs: minor fixes/update to notes 2023-10-27 20:27:51 +02:00
Thomas Waldmann d13b5d5557
docs: remove info about borg 1.0 files per dir 2023-10-27 20:26:27 +02:00
Thomas Waldmann e0f80812a5
docs: no signature upload on pypi any more
but we upload it on github releases,
so people can check it.
2023-10-27 20:25:29 +02:00
Thomas Waldmann 7640973d6b
docs: CI only on github actions now 2023-10-27 20:23:00 +02:00
azrdev 69d71d99bf
automated-local.rst: Partition table UUID match works for MBR too
not only GPT
2023-10-27 20:15:05 +02:00
azrdev b61a565fbc
automated-local.rst: use GPT UUID for consistent udev rule 2023-10-27 20:14:50 +02:00
TW 4a8f8bf789
Merge pull request #7886 from ThomasWaldmann/fix-inv-pattern-errorhandling-1.2
Fix arg parsing error handling (1.2-maint)
2023-10-27 20:09:36 +02:00