1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-03 13:45:31 +00:00
Commit graph

8848 commits

Author SHA1 Message Date
Thomas Waldmann
4c1a0b1ca0
msys2: disable SETUPTOOLS_USE_DISTUTILS=stdlib hack
The msys2 changelog says it is only needed for setuptools < 70.2.0:

https://www.msys2.org/docs/python/#known-issues

https://setuptools.pypa.io/en/stable/history.html#v70-2-0
2024-09-19 12:36:18 +02:00
TW
11b72efffe
Merge pull request #8394 from ThomasWaldmann/list-refresh-lock-frequently
repository.list: refresh lock more frequently
2024-09-19 12:19:29 +02:00
Thomas Waldmann
2a20ebeec7
repository.list: refresh lock more frequently
under all circumstances, we must avoid that the lock
gets stale due to not being refreshed in time.

there is some internal rate limiting in _lock_refresh,
so calling it often should be no problem.
2024-09-19 11:38:49 +02:00
TW
97d1e18626
Merge pull request #8393 from ThomasWaldmann/fix-compact-nonunique-names
fixes for non-unique archive names
2024-09-19 01:52:08 +02:00
Thomas Waldmann
03b139ee53
ArchiveFormatter: fix for non-unique archive names
For Archive(), always use the archive id, not the archive name!
2024-09-19 00:58:45 +02:00
Thomas Waldmann
eb75390240
tests: fix for non-unique archive names
For Archive(), always use the archive id, not the archive name!
2024-09-19 00:58:32 +02:00
Thomas Waldmann
948bc4cdf9
mount: fix for non-unique archive names
For Archive(), always use the archive id, not the archive name!
2024-09-19 00:58:21 +02:00
Thomas Waldmann
f5b3ab66e9
transfer: fix for non-unique archive names
For Archive(), always use the archive id, not the archive name!
2024-09-19 00:58:05 +02:00
Thomas Waldmann
4bce862d95
diff: fix for non-unique archive names
For Archive(), always use the archive id, not the archive name!

Also: remove with_archive decorator usage to get more consistent code.
2024-09-19 00:57:04 +02:00
Thomas Waldmann
6b68b5a4a7
compact: fix for non-unique archive names
For Archive(), always use the archive id, not the archive name!

Also: sorting by timestamp, improved output.
2024-09-19 00:56:25 +02:00
TW
61dd29b815
Merge pull request #8391 from ThomasWaldmann/fix-hashing-time-test
remove the hashing/chunking time tests
2024-09-18 19:39:55 +02:00
Thomas Waldmann
2b69e71465
remove the hashing/chunking time tests
frequently failing on fast machines.
2024-09-18 19:01:05 +02:00
TW
29c7ce4e1f
Merge pull request #8379 from ThomasWaldmann/backup-series
backup series, fixes #7930
2024-09-18 15:03:27 +02:00
Thomas Waldmann
1bc5902718
docs: update about archive series
in borg 1.x, we used to put a timestamp into the archive name to make
it unique, because borg1 required that.

borg2 does not require unique archive names, but it encourages you
to even use an identical archive name within the same SERIES of archives.
that makes matching (e.g. for prune, but also at other places) much
simpler and borg KNOWS which archives belong to the same series.
2024-09-18 14:05:12 +02:00
Thomas Waldmann
a4d2fc8dd7
remote: allow get_manifest method (bugfix)
LegacyRepository of borg2 knows this method.
2024-09-17 20:18:47 +02:00
Thomas Waldmann
dd78b774a0
transfer: checking name is not enough, check name/id and name/ts 2024-09-17 20:18:45 +02:00
Thomas Waldmann
426d1c7dda
manifest: reorder methods, no other changes 2024-09-17 20:18:44 +02:00
Thomas Waldmann
77fc3fb884
manifest: use empty archives/<archive_hex_id>
for the archives directory, we only need to know the archive IDs,
everything else can be fetched from the ArchiveItem in the repo.

so we store empty files into archives/* with the archiv ID as name.

this makes some "by-id" operations much easier and we don't have to
deal with a useless "store_key" anymore.

removed .delete method - we can't delete by name anymore as we
allow duplicate names for the series feature. everything uses
delete_by_id() now.

also: simplify, clean up, refactor
2024-09-17 20:18:40 +02:00
Thomas Waldmann
6ce5f2f230
manifest: use id from directory, fetch other metadata from archive 2024-09-17 20:18:38 +02:00
Thomas Waldmann
bb5cf96fe8
check: fix/enhance code, rewrite test
- we should always output name and id when talking about an archive
- no problem anymore if names in archives directory are "duplicate"
- use "by-id" archives directory entry delete function
- rewrite/simplify test for borg check --undelete-archives
2024-09-17 18:17:07 +02:00
Thomas Waldmann
81a27c1dbe
info/delete/prune: allow positional NAME argument
so if one works with backup series, one can just do:

borg prune --keep-daily 30 seriesname

seriesname will then do a precise match on the archive names
and select that series.
2024-09-17 18:16:36 +02:00
Thomas Waldmann
8237e6beca
NAME is the series, archive id is the hash
aid:<archive-id-prefix> can be used for -a / --match-archives
to match on the archive id (prefix) instead of the name.

NAME positional argument now also supports matching (and aid:),
but requires that there is exactly ONE result.
2024-09-17 18:16:31 +02:00
TW
ed31131fb6
Merge pull request #8384 from ThomasWaldmann/archive-inode
create: also archive inode number, fixes #8362
2024-09-17 12:50:54 +02:00
Thomas Waldmann
ae4abdfe1c
create: also archive inode number, fixes #8362
we could use this if we use the "previous archive" instead of the "files cache"
to determine whether a file is unchanged.
2024-09-17 11:49:05 +02:00
TW
e4b5a59be0
Merge pull request #8383 from ThomasWaldmann/sftp-url-docs
docs: user@ and :port are optional in sftp and ssh URLs
2024-09-17 10:06:54 +02:00
TW
4e05e78e35
Merge pull request #8382 from sothix/8264-windows-ci-broken
Fix for #8264 Windows CI broken and #8381 Windows build failing
2024-09-17 10:03:55 +02:00
Thomas Waldmann
82a1d38bcc
docs: user@ and :port are optional in sftp and ssh URLs 2024-09-17 10:01:33 +02:00
Thomas Waldmann
8790371ac8
map EISDIR to BackupPermissionError class also
macOS and Linux give EISDIR, while Windows gives EPERM when trying to
open a file for writing, if the filename is already taken by an existing
directory.

now all OSes should give the same RC in this case.
2024-09-16 12:01:41 +02:00
Thomas Waldmann
de249f611e
CI: enable windows build 2024-09-15 22:56:06 +02:00
sothix
f11dc50070 Pip Fix 2024-09-15 23:35:24 +10:00
TW
c278a8e859
Merge pull request #8377 from AfroThundr3007730/AfroThundr3007730/issue8361
Update repository URLs in docs to use new syntax
2024-09-14 13:45:33 +02:00
Eddie Carswell
9fe3cb686f
Update repository URLs in docs to use new syntax
Fixes #8361

Signed-off-by: Eddie Carswell <eddiecarswell13@yahoo.com>
2024-09-11 22:03:59 -05:00
TW
5de5367092
Merge pull request #8364 from ThomasWaldmann/rel200b10
Release 2.0.0 beta 10
2024-09-09 23:25:22 +02:00
Thomas Waldmann
bb31b42310
build_usage build_man 2024-09-09 16:58:06 +02:00
Thomas Waldmann
58fe5ad02a
update CHANGES 2024-09-09 16:51:12 +02:00
TW
64a20cc9d8
Merge pull request #8363 from ThomasWaldmann/remove-config-cmd-docs
remove "borg config" docs
2024-09-09 14:02:35 +02:00
Thomas Waldmann
3ff33684c6
remove "borg config" docs
the config command was already removed before.
2024-09-09 13:42:31 +02:00
TW
00694774fb
Merge pull request #8358 from ThomasWaldmann/repo-commands-rename
repo commands renamed r* -> repo-*
2024-09-09 13:38:38 +02:00
Thomas Waldmann
cfd35b4bd6
update CHANGES 2024-09-09 11:22:38 +02:00
TW
275dabbc23
Merge pull request #8360 from ThomasWaldmann/borgstore-requirement
require borgstore~=0.0.1
2024-09-09 02:13:16 +02:00
Thomas Waldmann
46878c3bd8
require borgstore ~= 0.0.1
so we can do borgstore releases:

- 0.0.x == compatible fixes, would match
- 0.1.0 could be incompatible changes, would not match
2024-09-09 00:51:13 +02:00
Thomas Waldmann
7f1fc0cf63
docs: build_man 2024-09-08 18:11:44 +02:00
Thomas Waldmann
ecb838d5e7
src: fix man page names 2024-09-08 18:11:41 +02:00
Thomas Waldmann
78c7aabbb6
docs: fix usage docs and references for repo-* commands 2024-09-08 18:06:26 +02:00
Thomas Waldmann
04dfadbbd6
cli: rename r* commands to repo-*
also:
- adapt tests
- adapt BuildMan manpage generation
- adapt help strings / doc strings
- docs
2024-09-08 18:06:24 +02:00
Thomas Waldmann
a7bfd4aec8
src: renamed r*_epilog attrs to repo_*_epilog, fixed references 2024-09-08 16:13:43 +02:00
Thomas Waldmann
149ff7541d
src: renamed do_r* methods to do_repo_*, fixed imports 2024-09-08 16:09:41 +02:00
Thomas Waldmann
51d019c1ba
src: renamed build_parser_r* methods to build_parser_repo_*, fixed imports 2024-09-08 16:06:20 +02:00
Thomas Waldmann
4fe6d7fd19
src: renamed R*MixIn archiver classes to Repo*MixIn, fixed imports 2024-09-08 15:37:41 +02:00
Thomas Waldmann
f8d07e7d16
src: renamed r* archiver modules to repo_*, fixed imports 2024-09-08 15:33:11 +02:00