Thomas Waldmann
199f708b4f
add granularity_sleep, fixes #9150
2025-11-07 17:17:26 +01:00
Thomas Waldmann
7d43398a17
testsuite: improve haiku compatibility
...
haiku does not have os.mknod.
and it looks like it does not have hardlinks either.
2025-11-07 15:25:05 +01:00
TW
c9484a9f3e
Merge pull request #9142 from ThomasWaldmann/py310-improvements-master
...
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 / posix_tests (push) Has been cancelled
CI / windows_tests (push) Has been cancelled
refactor: update type hints to use Python 3.10+ syntax
2025-11-03 23:44:38 +01:00
TW
1b4a380454
Merge pull request #9062 from ThomasWaldmann/port-8998-master
...
diff: --sort-by=field[,field,...], fixes #8998
2025-11-03 23:42:29 +01:00
Thomas Waldmann
dec2eb745b
refactor: update type hints to use Python 3.10+ syntax
2025-11-03 23:28:08 +01:00
Thomas Waldmann
6157c4b968
refactor: use .remove(prefix|suffix) str methods (py39)
2025-11-03 22:35:37 +01:00
Thomas Waldmann
8f40baa34b
refactor: use |= operator for dictionary updates (py39)
2025-11-03 22:18:26 +01:00
Thomas Waldmann
68590e35f0
tests: use context manager when opening files in patterns_test
2025-11-03 20:54:09 +01:00
Thomas Waldmann
5c44dad125
diff --sort-by: enhanced sorting, fixes #8998
...
use borg diff --sort-by=spec1,spec2,spec2 for enhanced sorting.
remove legacy --sort behaviour (sort by path), this was deprecated
since 1.4.2.
Co-authored-by: Daniel Rudolf <github.com@daniel-rudolf.de>
This is a port of #9005 to master branch.
2025-11-03 19:25:02 +01:00
Thomas Waldmann
51ddfaf9c1
preprocess_args: fix option name matching
...
previously, it also matched on --sort-by when it only should have matched on --sort.
2025-11-03 17:51:05 +01:00
Fabian Fröhlich
9a5d2bc3ce
Bugfix: local path regex should not match s3 and b2 urls
2025-11-02 14:40:46 +01:00
Thomas Waldmann
c41d1b1fe2
drop python 3.9, more work was needed
2025-11-01 20:32:59 +01:00
Thomas Waldmann
ecfdc76eee
extract: fs flags: use get/set to influence only specific flags, #9039 , FreeBSD only.
2025-11-01 19:09:36 +01:00
Thomas Waldmann
44ac21ff29
extract: fs flags: use get/set to influence only specific flags, #9039 , macOS only.
...
preserve UF_COMPRESSED and SF_DATALESS when restoring flags,
get-modify-set in macOS set_flags, keeping system-managed read-only flags.
(cherry picked from commit 83571aa00d )
2025-11-01 18:11:42 +01:00
Thomas Waldmann
7e6dea9408
BORG_MSGPACK_VERSION_CHECK=no to disable the version check, fixes #9109
...
(cherry picked from commit 2d63dc9a4f )
2025-11-01 16:48:00 +01:00
Thomas Waldmann
5fef3f0118
json: include archive keys in JSON lines when requested via --format, fixes #9095
...
Add a test to ensure correct behavior.
(cherry picked from commit 0c27bd3047 )
2025-10-27 23:48:48 +01:00
Thomas Waldmann
9e2d8492e1
cosmetic fix: black format src
2025-10-27 23:08:21 +01:00
TW
8c1d919095
Merge pull request #9097 from valtron/fix-win-fileurl
...
Fix windows file URLs
2025-10-27 21:18:36 +01:00
valtron
1f76b6a21e
linter
2025-10-26 23:20:49 -06:00
valtron
fcc5a5beff
ensure valid file urls are created from windows paths
2025-10-25 12:24:30 -06:00
valtron
cea7744276
add missing guards around preexec_fn=ignore_sigint
2025-10-23 20:28:28 -06:00
Thomas Waldmann
aea883b700
set_flags: remove compression flag
...
This flag needs to be set BEFORE writing to the file.
But "borg extract" sets the flags last (to support IMMUTABLE),
thus the compression flag would not work as expected.
(cherry picked from commit 56dda84162 )
2025-10-21 03:02:35 +02:00
Thomas Waldmann
a6b6d35b30
set_flags: use get/set to only influence specific flags, fixes #9039
...
Linux platform only.
(cherry picked from commit 9214197a2c )
set_flags: if getting the flags fails, better give up than
corrupting them.
Thanks to Earnestly for the feedback on IRC.
(cherry picked from commit 9c600a9571 )
2025-10-21 03:01:10 +02:00
TW
0277d8b635
Merge pull request #9086 from ThomasWaldmann/patterns-style-master
...
Lint / lint (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CI / posix_tests (push) Has been cancelled
CI / windows_tests (push) Has been cancelled
patterns: clarify scope of default pattern style, fixes #9004
2025-10-16 11:17:50 +02:00
TW
5df6021bc2
Merge pull request #9084 from ThomasWaldmann/non-tty-progress-master
...
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / posix_tests (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
improved tty-less progress reporting (master)
2025-10-16 03:21:17 +02:00
Thomas Waldmann
a32989071b
do_show_rc: suppress bandit warning
...
see the comment in line 201.
2025-10-16 02:46:08 +02:00
Thomas Waldmann
3a9088f501
patterns: clarify scope of default pattern style, fixes #9004
2025-10-16 02:39:42 +02:00
Thomas Waldmann
a775517f08
mount --show-rc: display main process rc, fixes #8308
...
when borg mount is used without -f/--foreground (so that the FUSE
borg process was started daemonized in the background), it did not
display the rc of the main process, even when --show-rc was used.
now it does display the rc of the main process.
note that this is rather a consistency fix than being super useful,
because the main "action" happens in the background daemon process,
not in the main process.
2025-10-16 02:26:06 +02:00
Thomas Waldmann
8cbe4b8d48
improved tty-less progress reporting
...
Previously when running borg in a systemd service (and similar when piping to
a file and co.), these problems occurred:
- The carriage return both made it so that journald interpreted the output as
binary, therefore not printing the text, while also not buffering
correctly, so that log output was only available every once in a while
in the form [40k blob data]. This can partially be worked around by
using `journalctl -a` to view the logs, which at least prints the text,
though only sporadically.
- The path was getting truncated to a short length, since the default
get_terminal_size returns a column width of 80, which isn't relevant
when printing to e.g. journald.
This commit fixes this by introducing a new code path for when stream is
not a tty, which always prints the full paths and ends lines with a linefeed.
This is based on unfinished PR #8939 by @infinisil, thanks for your suggestion!
Forward port of PR #9055 to master.
2025-10-16 01:59:43 +02:00
Thomas Waldmann
2dd80e1ee9
docs: improve borg help patterns (port of #9054 to master); fixes #7144
2025-10-16 00:47:15 +02:00
Thomas Waldmann
084750ad48
add fuzzing tests for chunkers
2025-10-15 23:48:13 +02:00
TW
b988f9c3a2
Merge pull request #9050 from ThomasWaldmann/keyfile-same-repo-path-master
...
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 / linux (ubuntu-22.04, 3.10, mypy) (push) Has been cancelled
CI / linux (ubuntu-22.04, 3.10, py310-fuse2) (push) Has been cancelled
CI / linux (ubuntu-22.04, 3.11, docs) (push) Has been cancelled
CI / linux (ubuntu-22.04, 3.11, py311-fuse3) (push) Has been cancelled
CI / linux (ubuntu-24.04, 3.12, py312-fuse3) (push) Has been cancelled
CI / linux (ubuntu-24.04, 3.13, py313-fuse3) (push) Has been cancelled
CI / linux (ubuntu-24.04, 3.14, py314-fuse3) (push) Has been cancelled
CI / macOS (macos-14, 3.11, py311-none) (push) Has been cancelled
CI / windows (push) Has been cancelled
docs: What happens when a new keyfile repo is created at the same path?
2025-10-10 20:24:54 +02:00
TW
dbf321a2b2
Merge pull request #9051 from ThomasWaldmann/borg-mount-debugging
...
docs: how to debug borg mount, fixes #5461
2025-10-10 20:19:29 +02:00
Thomas Waldmann
0031b73b2b
docs: how to debug borg mount, fixes #5461
2025-10-10 14:52:10 +02:00
Thomas Waldmann
d0dab94c07
docs: What happens when a new keyfile repo is created at the same path?, fixes #6230
...
Also add a test.
2025-10-10 14:24:05 +02:00
Atemu
fdabbd7633
extract: document how to use wildcards in PATHs
...
Fixes https://github.com/borgbackup/borg/issues/8589
2025-10-10 11:20:08 +02:00
Thomas Waldmann
da58d92aa6
allow msgpack 1.1.2
...
1.1.2 provides wheels for py 3.14.
2025-10-09 13:16:54 +02:00
TW
1c6ef7a200
Merge pull request #9031 from cr1901/relax-hl-main
...
Add tests for diff output of archives with hard links.
2025-10-02 18:10:21 +02:00
TW
6176019550
Merge pull request #9033 from ThomasWaldmann/fix-9032
...
create: add exception handler for NODUMP excluded dirs, fixes #9032
2025-10-02 13:49:33 +02:00
William D. Jones
4951e1001a
Modify hard-link tests based on upstream feedback.
2025-09-30 20:50:31 -04:00
Thomas Waldmann
b2798ecd3a
create: add exception handler for NODUMP excluded dirs, fixes #9032
2025-10-01 00:59:43 +02:00
Thomas Waldmann
0f861d5a91
list --format: add "inode" support to formatter, add tests
2025-10-01 00:43:31 +02:00
Thomas Waldmann
b27dba670c
add test for #9032
2025-09-30 19:32:22 +02:00
William D. Jones
a396e7db2b
Add tests for diff output of archives with hard links.
2025-09-30 12:56:15 -04:00
Thomas Waldmann
5aa536df4c
spelling: hard link(s)
2025-09-23 15:17:35 +02:00
Thomas Waldmann
2c7bec0149
manual corrections/reverts
2025-09-23 14:56:35 +02:00
Thomas Waldmann
3120f9cd1c
fixed typos and grammar (AI)
...
this was done by Junie AI.
2025-09-23 14:56:23 +02:00
Thomas Waldmann
dd06c07789
paperkey.html: fix typos, grammar, html structure
...
The original markup included a paragraph element wrapping a block-level pre element, which is invalid per HTML’s content model (a p can only contain phrasing content; pre is flow content).
The fix separated text and pre blocks into valid sibling elements, ensuring no pre is nested inside a p.
2025-09-23 14:53:54 +02:00
TW
3aee110c44
Merge pull request #9025 from ThomasWaldmann/fix-readonly-tests-master
...
read_only CM: skip test if cmd_immutable is unsuccessful, fixes #9021
2025-09-22 22:01:16 +02:00
Thomas Waldmann
e5a5d67bff
read_only CM: skip test if cmd_immutable is unsuccessful, fixes #9021
2025-09-22 21:01:01 +02:00