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

6839 commits

Author SHA1 Message Date
snsmac
c339d2e9e2 Update hashtable stress test to work with borg < 2 where NSIndex has 2-tuples as values 2023-03-04 21:41:31 +01:00
Thomas Waldmann
b7d70f2064 add comment about how to provoke more collisions 2023-03-04 20:09:58 +01:00
Thomas Waldmann
b33fea7718 add hashtable stress tests
Using NSIndex (repo index) HashIndex, but they all are very similar.
2023-03-04 20:09:50 +01:00
TW
6e8c58c125
Merge pull request #7395 from helmutg/reproducible-docs-1.2
Make timestamps in manual pages reproducible
2023-03-01 09:20:20 +01:00
Vagrant Cascadian
a5c9231e88 Make timestamps in manual pages reproducible
Refer to https://reproducible-builds.org/docs/source-date-epoch/ for
documentation on SOURCE_DATE_EPOCH.

Bug-Debian: https://bugs.debian.org/1029807
Signed-off-by: Helmut Grohne <helmut@subdivi.de>

(cherry picked from commit 98352cf667)
2023-02-28 13:38:45 +01:00
TW
a7a80ffe90
Merge pull request #7382 from ThomasWaldmann/rtd-config-1.2
add .readthedocs.yaml
2023-02-25 18:51:51 +01:00
Thomas Waldmann
fd6e76e6a4
add .readthedocs.yaml
same as in master branch
2023-02-25 18:42:49 +01:00
TW
836bd0339d
Merge pull request #7361 from voegelas/1.2-maint-fedora
Installation: Update Fedora in distribution list
2023-02-17 18:58:50 +01:00
Andreas Vögele
007b73ac67 Installation: Update Fedora in distribution list
Fixes #7357
2023-02-17 14:45:17 +01:00
TW
1dce595d8f
Merge pull request #7338 from ThomasWaldmann/timestamp-comparisons-1.2
relaxed timestamp comparisons (1.2)
2023-02-11 00:19:08 +01:00
TW
e41466dbb3
Merge pull request #7337 from ThomasWaldmann/fix-recreate-rechunkify-1.2
recreate without --chunker-params shall not rechunk (1.2)
2023-02-10 18:37:11 +01:00
Thomas Waldmann
6bf818a2a1
tests: use same_ts_ns for all timestamp comparisons 2023-02-10 18:36:10 +01:00
Thomas Waldmann
b3da30e6d4
same_ts_ns: add a timestamp comparison function
also: HAVE_UTIMES means 1us resolution (*)

(*) at least as far as the utimes() call is concerned.

Whether there are other limitations has to be seen.
2023-02-10 17:58:46 +01:00
Thomas Waldmann
cd23d810d3
recreate: --chunker-params must default to None, fixes #7337
before the fix, it triggered rechunking if an archive
was created with non-default chunker params.

but it only should rechunk if borg recreate is invoked with explicitly giving --chunker-params=....
2023-02-10 14:12:08 +01:00
Thomas Waldmann
dbe1c98cb3
tests: recreate without --chunker-params shall not rechunk 2023-02-10 14:01:04 +01:00
TW
5ccfaa7a45
Merge pull request #7299 from ThomasWaldmann/test-dir-mtime-1.2
add test for extracted directory mtime
2023-01-28 00:59:59 +01:00
Thomas Waldmann
b472768b57
more directory timestamp tests 2023-01-24 15:58:30 +01:00
Thomas Waldmann
2291ab755d
add test for extracted directory mtime 2023-01-24 15:22:01 +01:00
TW
48713ebff6
Merge pull request #7265 from ThomasWaldmann/fix-locking-1.2
Fix locking (1.2-maint)
2023-01-19 18:15:28 +01:00
TW
dbba9cbc53
Merge pull request #7268 from ThomasWaldmann/recreate-with-target-1.2
recreate: when --target is given, do not detect "nothing to do"
2023-01-16 17:22:50 +01:00
Thomas Waldmann
c43140686b
recreate: when --target is given, do not detect "nothing to do"
use case:

borg recreate -a src --target dst can be used to make a copy
of an archive inside the same repository, see #7254.
2023-01-14 19:28:57 +01:00
Thomas Waldmann
16eb38e20a
fix host, pid, tid order
using "differenthost" (== not the current hostname) makes
the process_alive check always return True (to play safe,
because in can not check for processes on other hosts).
2023-01-13 22:36:50 +01:00
Thomas Waldmann
91104674e7
use os.replace not os.rename 2023-01-13 22:32:11 +01:00
Thomas Waldmann
804867d3ad
bugfix: thread id must be parsed as hex from lock file name 2023-01-13 22:30:28 +01:00
TW
1dcaa74788
Merge pull request #7252 from puetzk/test_size_on_disk_accurate-flush-1.2
[1.2-maint] Fix test_size_on_disk_accurate for large st_blksize, fixes #7250
2023-01-12 20:52:48 +01:00
Kevin Puetz
fe3775cf80 Fix test_size_on_disk_accurate for large st_blksize, fixes #7250
python's io.BufferedWriter sizes its buffer based on st_blksize.
If the write fits in this buffer, then it's possible the data from
idx.write() has not been flushed through to ,the underlying filesystem,
and getsize(fileno()) sees a too-short (or even empty) file.

Also, getsize is only documented as accepting path-like objects;
passing a fileno seems to work only because the implementation
blindly forwards everything through to os.stat without checking.

Passing unopened_tempfile avoids all three problems
- on windows, it doesn't rely on re-opening NamedTemporaryFile
  (the issue which led to 8ddfd94f09)
- we're following the documented API of getsize(path-like)
- the file is closed (thus flushed) inside idx.write, before getsize()
2023-01-11 19:19:43 -06:00
TW
2336c4b5a6
Merge pull request #7256 from ThomasWaldmann/docs-libb2-1.2
remove BORG_LIBB2_PREFIX (not used any more)
2023-01-10 14:24:38 +01:00
Thomas Waldmann
47e0f9bcb0
remove BORG_LIBB2_PREFIX (not used any more)
the code now uses hashlib.blake2b from python stdlib.
2023-01-10 14:09:28 +01:00
TW
1ac19b034b
Merge pull request #7242 from ThomasWaldmann/upgrade-cython-1.2
upgrade Cython to 0.29.33
2023-01-06 22:04:18 +01:00
TW
32b5f44bbb
Merge pull request #7235 from ThomasWaldmann/macos-resourcefork-mtime-1.2
extract: fix mtime when ResourceFork xattr is set (macOS specific)
2023-01-06 21:41:29 +01:00
Thomas Waldmann
497eca0faf
upgrade Cython to 0.29.33 2023-01-06 21:39:22 +01:00
Thomas Waldmann
b96781b9dd
macOS: fix mtime timestamp extraction if ResourceFork xattr is present, fixes #7234
setting the timestamps after xattrs helps for correct mtime,
but atime is still broken in this case.
2022-12-30 00:08:06 +01:00
Thomas Waldmann
c095e2ef61
macOS: test correct timestamp extraction if ResourceFork xattr is present, see #7234 2022-12-30 00:08:04 +01:00
TW
4ca090bb8c
Merge pull request #7229 from ThomasWaldmann/update-requirements-1.2
update development.lock.txt
2022-12-27 20:31:28 +01:00
Thomas Waldmann
3837e0233d
update development.lock.txt
including a setuptools security fix, see #7227

also:
- cosmetic change in development.txt to have same order
- removed exclusion of broken Cython release (outdated since long)
2022-12-27 19:32:20 +01:00
TW
06716a7971
Merge pull request #7224 from ThomasWaldmann/rel123
release 1.2.3
2022-12-24 23:25:57 +01:00
Thomas Waldmann
ae8b0eb3e4
avoid git complaining about dubious ownership
this lead to breakage of setuptools_scm, it could not
determine the borg version under fakeroot due to this
git / ownership issue.
2022-12-24 18:15:49 +01:00
Thomas Waldmann
795a553675
build_man 2022-12-24 18:09:33 +01:00
Thomas Waldmann
ec49d60d1f
build_usage 2022-12-24 18:09:32 +01:00
Thomas Waldmann
e4cbd28bdd
update CHANGES 2022-12-24 18:09:30 +01:00
Thomas Waldmann
ffd6d51b2c
fix xattr tests
while fixing #6988, some strings were changed, but the tests not adapted:

a758fda089
2022-12-24 18:09:28 +01:00
TW
ab0f0d24fd
Merge pull request #7223 from ThomasWaldmann/fix-docs-prefix-1.2
Fix docs / tests concerning deprecated --prefix (1.2-maint)
2022-12-24 15:10:56 +01:00
Thomas Waldmann
90a937e1ed
remove deprecated --prefix from docs, fixes #7109
also:

- rather mention --glob-archives
- rather test --glob-archives
2022-12-24 14:44:05 +01:00
TW
2f78e545e0
Merge pull request #7222 from ThomasWaldmann/vagrant-updates
Vagrant updates
2022-12-24 04:40:08 +01:00
Thomas Waldmann
aa2c2a4e34
vagrant: use python 3.9.16 for the binary build 2022-12-24 02:24:35 +01:00
Thomas Waldmann
5a442743f5
vagrant: use the openbsd 7.1 box
openbsd 6.9 was removed from the ftp servers and
the vagrant box stopped working. so we now use the
same box as in master branch.
2022-12-24 02:21:50 +01:00
TW
5704c4d887
Merge pull request #7215 from ThomasWaldmann/github-actions-updates-1.2
GitHub actions updates (1.2-maint)
2022-12-17 21:39:07 +01:00
TW
28bf1db2c8
Merge pull request #7216 from ThomasWaldmann/fix-ci-1.2
fix github CI (1.2-maint)
2022-12-17 21:38:05 +01:00
Thomas Waldmann
96d36e32cb
github CI: set PKG_CONFIG_PATH again
strange: on macOS, the globally set PKG_CONFIG_PATH was overwritten,
thus the borg build did not find openssl any more. setting it here
locally again works around the issue.
2022-12-17 20:27:49 +01:00
Thomas Waldmann
dd8e5487e3
github CI: prepend to PKG_CONFIG_PATH 2022-12-17 20:27:39 +01:00