1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-09 05:16:35 +00:00
Commit graph

7234 commits

Author SHA1 Message Date
Thomas Waldmann
5d956b9655
add ConnectionBrokenWithHint for BrokenPipeErrors and similar, see #7016
no traceback, but error message and specific exit code.
2024-01-19 18:38:07 +01:00
Thomas Waldmann
45f65f7c57
check_can_create_repository: deal with PermissionErrors, see #7016
borg init calls this. If there is a PermissionError, it is
usually fs permission issue at path or its parent directory.

Don't give a traceback, but rather an error msg and a specific exit code.
2024-01-19 18:13:53 +01:00
TW
266c9f6e8f
Merge pull request #8053 from ThomasWaldmann/remote-version-1.4
implement "borg version", fixes #7829
2024-01-19 15:26:28 +01:00
Thomas Waldmann
8d72927e77
implement "borg version", fixes #7829
Additional new command "borg version <REPO>" which shows client and server version.
2024-01-19 13:01:14 +01:00
TW
c7cef548a9
Merge pull request #8052 from ThomasWaldmann/update-changes-1.4
update CHANGES (1.4-maint)
2024-01-19 10:58:28 +01:00
Thomas Waldmann
9ec454727d
update CHANGES 2024-01-19 00:54:45 +01:00
TW
319441e75d
Merge pull request #8051 from ThomasWaldmann/corrupted-key-errmsg-1.4
better error msg for corrupted key data, fixes #8016
2024-01-19 00:45:59 +01:00
Thomas Waldmann
dbbccf9451
better error msg for corrupted key data, fixes #8016 2024-01-18 23:59:35 +01:00
TW
06f6136a60
Merge pull request #8049 from ThomasWaldmann/bump-api-version-1.4
bump api version to 1.4
2024-01-18 23:13:28 +01:00
TW
49d21f95f5
Merge pull request #8050 from ThomasWaldmann/use-cy308-1.4
use cython 3.0.8
2024-01-18 23:13:10 +01:00
Thomas Waldmann
c457dbcd8a
use cython 3.0.8 2024-01-18 20:17:11 +01:00
TW
1cffe6906d
Merge pull request #8048 from ThomasWaldmann/y2024-1.4
Y2024 (1.4-maint)
2024-01-18 20:10:24 +01:00
Thomas Waldmann
98fa922904
bump api version to 1.4 2024-01-18 20:09:49 +01:00
Thomas Waldmann
2b7f3adec9
it's 2024 2024-01-18 20:02:56 +01:00
TW
a73f74e0b0
Merge pull request #8047 from ThomasWaldmann/error-msg-bad-nonce-file-1.4
repository: give clean error msg for invalid nonce file, see #7967
2024-01-18 19:53:02 +01:00
Thomas Waldmann
742bd0c097
refactor: use less binascii
our own hex_to_bin / bin_to_hex is more comfortable to use.

also: optimize remaining binascii usage / imports.
2024-01-18 18:13:40 +01:00
Thomas Waldmann
d9132a34d4
give clean error msg for invalid nonce file, see #7967
That rather long traceback was not pretty.

Of course users should usually have valid nonce files,
but multiple users managed to corrupt the file contents somehow.

Also:
- add Error / ErrorWithTraceback exception classes to RPC layer.
- add hex_to_bin helper
- also call hex_to_bin for the local nonce file (security dir)
2024-01-17 15:31:03 +01:00
TW
5b77bfef06
Merge pull request #8045 from ThomasWaldmann/brewfile-1.4
Create and use Brewfile (1.4-maint)
2024-01-15 01:14:34 +01:00
Thomas Waldmann
700d588e05
Brewfile: don't install osxfuse cask by default. 2024-01-14 19:58:49 +01:00
Stephen
e3ba364933
docs: add brew bundle instructions (macOS) 2024-01-14 19:54:30 +01:00
Stephen
bfe81ab1d7
github CI (macOS): use brew bundle install (uses Brewfile) 2024-01-14 19:53:45 +01:00
Stephen
ed188d528f
Create Brewfile 2024-01-14 19:51:43 +01:00
TW
5dc8ddc8bd
Merge pull request #8043 from ThomasWaldmann/logging-msg-param-1.4
logger method params (1.4-maint)
2024-01-14 14:42:42 +01:00
Thomas Waldmann
884668ee07
borg.logger: use same method params as python logging 2024-01-14 00:07:05 +01:00
TW
046a5ecdc7
Merge pull request #8033 from ThomasWaldmann/fix-commanderror-args-1.4
fix CommandError args, fixes #8029
2024-01-08 12:46:37 +01:00
TW
9644cd1181
Merge pull request #8034 from ThomasWaldmann/fetch-binaries-1.4
add script for fetching borg binaries from VMs, fixes #7989
2024-01-07 21:12:07 +01:00
Thomas Waldmann
37e1ec5e4a
add script for fetching borg binaries from VMs, fixes #7989 2024-01-07 21:00:16 +01:00
Thomas Waldmann
c2e7b7cc96
fix CommandError args, fixes 8029 2024-01-07 19:47:50 +01:00
TW
2812f992b8
Merge pull request #8032 from kmille/1.4-maint
improve docs for borg with-lock, 1.4-maint backport
2024-01-07 19:08:40 +01:00
TW
531d32460e
Merge pull request #8030 from ThomasWaldmann/fix-with-lock-exceptions-1.4
borg with-lock: catch exception, print error msg, fixes #8022
2024-01-07 19:06:47 +01:00
kmille
0c3c1e6e3c
improve docs for borg with-lock
discussion in #8022
port of #8024
2024-01-07 18:32:40 +01:00
kmille
aae959cd6d
borg with-lock: catch exception, print error msg, fixes #8022 2024-01-07 17:14:26 +01:00
TW
499e07d842
Merge pull request #8028 from ThomasWaldmann/modernize-msgpack-1.4
modernize msgpack wrapper
2024-01-07 05:39:12 +01:00
Thomas Waldmann
46fc887647
msgpack: remove max_*_len, msgpack has builtin DoS-protection
msgpack >= 0.6.1 has DoS-protection and we require >= 1.0.3 anyway.

This is now a bit closer to what master branch uses.
2024-01-04 20:14:59 +01:00
Thomas Waldmann
8cb7bc3d32
msgpack: simplify, we are always using msgpack >= 1.0.3 now
see requirements, we also check this in is_supported_msgpack().

update comment about msgpack api change.
2024-01-04 20:14:34 +01:00
TW
0f23bda622
Merge pull request #8011 from ThomasWaldmann/rel140a1
release 1.4.0a1
2024-01-01 21:56:56 +01:00
Thomas Waldmann
f6963df380
build_man 2024-01-01 21:16:56 +01:00
Thomas Waldmann
5eaabea647
build_usage 2024-01-01 21:16:30 +01:00
Thomas Waldmann
3426f91241
update release checklist 2024-01-01 21:13:27 +01:00
Thomas Waldmann
520870329f
update CHANGES 2024-01-01 21:11:07 +01:00
TW
3a269d9552
Merge pull request #8010 from ThomasWaldmann/update-docs-1.4
update CHANGES
2024-01-01 20:53:39 +01:00
Thomas Waldmann
7e2a1c4ea7 update CHANGES 2024-01-01 20:21:15 +01:00
TW
de5bfdbd7a
Merge pull request #7976 from ThomasWaldmann/new-rc-1.4
optional more specific return codes
2024-01-01 19:53:25 +01:00
TW
0e5f6e6a4e
Merge pull request #8006 from ThomasWaldmann/update-changes-1.4
update CHANGES
2023-12-27 19:28:38 +01:00
Thomas Waldmann
649537f951
update CHANGES 2023-12-27 19:22:04 +01:00
Thomas Waldmann
2b6dd14464
use get_reset_ec to internally re-init ec/warnings
if we do multiple calls to Archiver.do_something(),
we need to reset the ec / warnings after each call,
otherwise they will keep growing (in severity, in length).
2023-12-27 13:49:11 +01:00
Thomas Waldmann
242b8f9f51
refactor (re-)init of exit_code and warnings_list globals
stop directly accessing the variables from other modules.

prefix with underscore to indicate that these shall
only be used within this module and every other user
shall call the respective functions.
2023-12-27 13:49:08 +01:00
Thomas Waldmann
4bb42d2a00
do not return the rc from Archiver methods
this is not needed and getting rid of it makes
the code / behaviour simpler to understand:

if a fatal error is detected, we throw an exception.

if we encounter something warning worthy, we emit and collect the warning.

in a few cases, we directly call set_ec to set the
exit code as needed, e.g. if passing it through
from a subprocess.

also:
- get rid of Archiver.exit_code
- assert that return value of archiver methods is None
- fix a print_warning call to use the correct formatting method
2023-12-27 13:49:06 +01:00
Thomas Waldmann
f81c6b5963
update frontends.rst error/warning list 2023-12-27 13:48:58 +01:00
Thomas Waldmann
69072f0c17
BackupErrors get caught and give warning RCs
also: use more union operators rather than .union()
2023-12-27 13:48:55 +01:00