1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-04 10:39:50 +00:00
Commit graph

6872 commits

Author SHA1 Message Date
Thomas Waldmann
d623b47da9
vagrant: use python 3.9.15 for tests/binary build 2022-11-20 17:57:16 +01:00
TW
c233a964f2
Merge pull request #7147 from ThomasWaldmann/fix-repository-tests-1.2
Fix repository tests 1.2
2022-11-19 17:06:07 +01:00
Rayyan Ansari
d0b09dfc95
testsuite: repository: skip some tests for RemoteRepository 2022-11-19 14:30:41 +01:00
Rayyan Ansari
82f6adf8e0
file_integrity.py: make sure file_fd is always closed on exit 2022-11-19 14:30:16 +01:00
Rayyan Ansari
9cff9d96fa
testsuite: repository: close fd before deleting segment
See last commit.
2022-11-19 14:28:14 +01:00
Rayyan Ansari
05505de807
repository: cleanup(): close segment before unlinking
On Windows, trying to delete a file that is already open raises an exception.

Docs:
https://docs.python.org/3/library/os.html#os.remove
2022-11-19 14:25:01 +01:00
Rayyan Ansari
6a97e936ac
repository: use os.replace instead of os.rename
On Windows, os.rename raises an exception if the destination file already exists, unlike os.replace which replaces the destination file.

Docs:
https://docs.python.org/3/library/os.html#os.rename
https://docs.python.org/3/library/os.html#os.replace
2022-11-19 14:22:35 +01:00
TW
97261dbb22
Merge pull request #7135 from ThomasWaldmann/remove-py37-compat-code-1.2
remove python < 3.7 compatibility code
2022-11-07 09:04:37 +01:00
Thomas Waldmann
f1a355f3d9
remove python < 3.7 compatibility code
not supported any more in master and 1.2-maint branches.
2022-11-06 18:25:03 +01:00
TW
fff56edd8a
Merge pull request #7130 from ThomasWaldmann/fix-6070-1.2
improve/clarify strange test code, fixes #6070
2022-11-05 02:15:25 +01:00
TW
2ae41fd9e6
Merge pull request #7128 from ThomasWaldmann/fix-root-paths-1.2
fix args.paths related argparsing, fixes #6994
2022-11-05 01:12:45 +01:00
Thomas Waldmann
25d6649bcd improve/clarify strange test code, fixes #6070 2022-11-05 00:51:44 +01:00
Thomas Waldmann
d57ed9dd98 fix args.paths related argparsing, fixes #6994
argparse: the default action is "store" and that overwrote an already
existing list in args.paths (e.g. from --pattern="R someroot") when it
started to process the positional PATH args.

with "extend" it now extends the existing args.paths with the list of
positional PATH arguments (which can be 0..N elements long, nargs="*").

note: "extend" is new since python 3.8, thus this can only be backported
to 1.2-maint, but not to 1.1-maint.
2022-11-05 00:30:46 +01:00
TW
01b921dea4
Merge pull request #7124 from ThomasWaldmann/hashindex-test-win-1.2
Fix test_size_on_disk_accurate on Windows
2022-11-04 21:12:58 +01:00
Thomas Waldmann
8ddfd94f09 Fix test_size_on_disk_accurate on Windows
Pass the python file object / fd instead of the file path.

On Windows, a tempfile cannot be opened again, unlike on Unix systems.
See https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
2022-11-04 20:28:09 +01:00
TW
3d1f11b2e2
Merge pull request #7106 from RayyanAnsari/msys2-ci-backport
Use MSYS2 for Windows CI [backport]
2022-10-28 19:11:39 +02:00
Rayyan Ansari
e8dd5c449e
Add new Windows build scripts and CI with GitHub and MSYS2 [backport]
Fixes #7105
2022-10-27 16:56:08 +01:00
Rayyan Ansari
4b27ab2fbd
Remove old Windows scripts and Appveyor CI [backport] 2022-10-27 16:33:02 +01:00
nyuszika7h
84f4c12752
tar_filter: recognize .tar.zst as zstd (backport) (#7095)
tar_filter: recognize .tar.zst as zstd

Backported from #7093
2022-10-22 13:41:11 +02:00
TW
0989cb4040
Merge pull request #7082 from ThomasWaldmann/fix-chunker-params-comparison
Fix chunker params comparison
2022-10-11 20:29:32 +02:00
Thomas Waldmann
3200190cdb diff: more precise warning msgs for different chunker params
if we know both archives' chunker params, use "are different" not "might be".
also do not recommend to enforce it using --same-chunker-params in this case.
2022-10-11 19:44:11 +02:00
Thomas Waldmann
651bef450d recreate: normalize chunker params before comparing them, see #7079
borg < 1.2 did not have the chunker name as first element in the tuple,
but it always was buzhash, because there was no other chunker.
2022-10-10 22:41:39 +02:00
Thomas Waldmann
a6207370a9 diff: normalize chunker params before comparing them, fixes #7079
borg < 1.2 did not have the chunker name as first element in the tuple,
but it always was buzhash, because there was no other chunker.
2022-10-10 22:27:12 +02:00
TW
773f3bff77
Merge pull request #7057 from ThomasWaldmann/fix-recreate-fixed-chunker-1.2
get_chunker: fix missing sparse=False argument, fixes #7056
2022-09-27 22:36:03 +02:00
Thomas Waldmann
875c94a20d get_chunker: fix missing sparse=False argument, fixes #7056 2022-09-27 21:45:51 +02:00
Thomas Waldmann
2f6197df0c add test for recreate with "fixed" chunker 2022-09-27 21:45:51 +02:00
Emmanuel Tanimowo
f49133da04
update automating backups script (#7039)
update "automating backups" script: remove last backslash, use --glob-archives
2022-09-21 00:54:38 +02:00
TW
44b4791e98
Merge pull request #7035 from ThomasWaldmann/fix-7034-1.2
check: fix uninitialised variable if repo is completely empty, fixes #7034
2022-09-17 20:51:48 +02:00
Thomas Waldmann
4f4be2631a check: fix uninitialised variable if repo is completely empty, fixes #7034 2022-09-17 20:29:34 +02:00
TW
9fe7339a39
Merge pull request #7024 from ThomasWaldmann/compat-setuptoolsscm4-1.2
do not use version_tuple placeholder in setuptools_scm template
2022-09-17 13:26:55 +02:00
Thomas Waldmann
3404346419 do not use version_tuple placeholder in setuptools_scm template
that would require setuptools_scm>=5.0.0 but some dists do not have that yet.
also, we do not use the version_tuple from _version.py, so it is not required
anyway.
2022-09-13 21:25:35 +02:00
TW
1b3cbe2461
Merge pull request #6990 from ThomasWaldmann/more-fine-grained-extended-stat-1.2
xattrs / extended stat: improve exception handling (1.2-maint)
2022-09-05 16:06:10 +02:00
Thomas Waldmann
3bd3600875 cosmetic: add missing blank to xattr test skip reason 2022-08-24 14:19:53 +02:00
Thomas Waldmann
a758fda089 xattrs: improve error handling, fixes #6988
looks like we can not rely on listxattr only returning
valid, acceptable names for getxattr.

so getxattr can still fail with EINVAL.

also:

- do not raise an exception if getting a single
xattr fails, rather emit a warning and continue
processing the remaining xattrs (and also the whole
file). we already had that for EPERM (and similar
for ENOATTR), just do it for all errors.

- _check, when it raises OSError, gives us a nice
exception object, use it.

- more helpful error msgs, try not to lose error information
2022-08-24 12:03:51 +02:00
Thomas Waldmann
b5d43506d3 extended stat: more fine grained exception handling
see #6988: it was unclear where exactly the error came from (flags, xattrs or ACLs getting?).
2022-08-23 21:56:31 +02:00
TW
9bfe210948
Merge pull request #6980 from ThomasWaldmann/rel122
release 1.2.2
2022-08-20 21:04:12 +02:00
Thomas Waldmann
101a06234f netbsd vagrant box: py310, remove some outdated fixes
seems like that stuff got fixed in 9.3.
2022-08-20 16:52:31 +02:00
Thomas Waldmann
e87c54a0a1 update CHANGES 2022-08-20 15:38:10 +02:00
Thomas Waldmann
bbad73502b requirements.lock.txt: upgrade Cython and tox 2022-08-20 15:38:10 +02:00
Thomas Waldmann
92ca260fd8 build_usage ; build_man 2022-08-20 15:38:10 +02:00
Thomas Waldmann
b024379904 fix sphinx warnings 2022-08-20 15:38:10 +02:00
TW
4e2cc02e86
Merge pull request #6967 from ThomasWaldmann/fix-versionpy-format-1.2
_version.py: remove trailing blank, add LF at EOF
2022-08-15 15:17:56 +02:00
TW
ec389edc83
Merge pull request #6944 from ThomasWaldmann/fix-ctrl-c-remote-repo-1.2
ctrl-c must not kill important subprocesses, fixes #6912
2022-08-13 23:23:50 +02:00
Thomas Waldmann
6799405012 _version.py: remove trailing blank, add LF at EOF 2022-08-13 20:35:03 +02:00
Thomas Waldmann
7a31978c55 ctrl-c must not kill other subprocesses, fixes #6912
There are some other places with subprocesses:

- borg create --content-from-command
- borg create --paths-from-command
- (de)compression filter process of import-tar / export-tar
2022-08-06 12:48:54 +02:00
Thomas Waldmann
5d83d5f153 ctrl-c must not kill the ssh subprocess, fixes #6912 2022-08-06 12:29:10 +02:00
TW
e215525339
Merge pull request #6943 from ThomasWaldmann/update-changes-1.2
update CHANGES
2022-08-06 11:37:07 +02:00
Thomas Waldmann
c4e552a1e5 update CHANGES 2022-08-06 10:41:58 +02:00
TW
fa8d8ecd73
Merge pull request #6918 from ThomasWaldmann/compaction-debugging-1.2
repository: add debug logging for issue #6687
2022-08-06 10:27:23 +02:00
TW
52cba940ea
Merge pull request #6936 from ThomasWaldmann/mkstemp_mode-1.2
use a custom mkstemp with mode support, fixes #6933, fixes #6400
2022-08-05 13:04:24 +02:00