Commit graph

2492 commits

Author SHA1 Message Date
Thomas Waldmann
b8d49a0274
put security infos into data dir, fixes #5760 2023-05-18 12:48:45 +02:00
Thomas Waldmann
b0b32e35f5
tests: avoid long ids in pytest output
sometimes the automatically computed IDs are just too long,
so rather give IDs directly or avoid them otherwise.
2023-05-18 05:46:33 +02:00
Thomas Waldmann
0744b7a241
fix test_extract_continue for hfs timestamp granularity 2023-05-17 00:19:42 +02:00
Thomas Waldmann
82ccf0c08c
fix test_extract_continue
make a hardlink to keep the inode allocated,
so it can not re-use the same inode when it
(deletes and re)creates the file.
2023-05-16 19:12:46 +02:00
elandorr
bfe6e0da5d
Update create_cmd.py 2023-05-15 11:49:22 +00:00
elandorr
c83507eb0c
mention paths-from-stdin's exclusiveness 2023-05-14 19:24:55 +00:00
elandorr
4fb2f2151e
include/exclude options 2023-05-14 19:23:15 +00:00
elandorr
e086d2a8f6
markup fix + note about MAX_DATA_SIZE 2023-05-14 07:14:48 +00:00
elandorr
8e2f5a621b
escape 2023-05-14 07:09:45 +00:00
TW
b70cefa474
Merge pull request #7556 from ThomasWaldmann/kill-nonce-manager
remove nonce management, related repo methods
2023-05-12 00:00:29 +02:00
Thomas Waldmann
f970679b62
low_level crypto: fix borg version in comments 2023-05-11 20:10:55 +02:00
Thomas Waldmann
44f58b0870
low_level crypto: minor cleanup
HMAC is not used, we use hmac from py stdlib.
2023-05-11 20:09:47 +02:00
Thomas Waldmann
e02d9edc34
remove nonce management, related repo methods
not needed for borg2 repos (we derive a new session key for each borg
invocation and start counting from 0).

also not needed for borg 1.x repos because we only read them (borg transfer)
and won't write new encrypted data to them.
2023-05-11 17:51:49 +02:00
Thomas Waldmann
0b62338d4a
borg transfer --compression=C --recompress=M, fixes #7529 2023-04-24 23:46:38 +02:00
TW
ee9bf28df9
Merge pull request #7524 from ThomasWaldmann/test-no-backslashes
tests: check for posix-like paths in archives, see #7120
2023-04-18 18:21:48 +02:00
Thomas Waldmann
573275e678
extract --continue: continue a previously interrupted extraction, fixes #1356
This skips over all previously fully extracted regular files,
but will delete and fully re-extract incomplete files.
2023-04-16 21:09:48 +02:00
Thomas Waldmann
7786cc7cb4
extract: support extraction of atime/mtime on win32 2023-04-16 20:40:35 +02:00
Thomas Waldmann
9e534c1929
Archive.extract_item: remove unused params, make most params kwargs
stripped_components: this is done already in do_extract, it modifies item.path accordingly.

original_path: not used any more.

also: run black.
2023-04-16 15:40:36 +02:00
Thomas Waldmann
0dee28bd9f
tests: check for posix-like paths in archives, see #7120 2023-04-15 20:29:26 +02:00
TW
0679cbd410
Merge pull request #7523 from ThomasWaldmann/optimize-src-dir-master
tests: use a smaller dir for src_dir, fixes #7518
2023-04-15 17:19:32 +02:00
Thomas Waldmann
4505c90920
tests: use a smaller dir for src_dir, fixes #7518
also: introduce src_file, which is a file in src_dir.
2023-04-15 16:46:23 +02:00
TW
b52a8af6f0
Merge pull request #7517 from snsmac/feat/highlander
Ensure that cli options specified with action=Highlander can only be set once.
2023-04-15 16:45:28 +02:00
snsmac
53b4cf05fb Ensure that cli options specified with action=Highlander can only be set once, even if the set value is a default value. Add tests for action=Highlander. See #7500 #6269 2023-04-15 16:12:36 +02:00
TW
9263705de7
Merge pull request #7521 from ThomasWaldmann/fix-argparse-errors-master
Fix argparse error messages
2023-04-15 15:08:07 +02:00
TW
81e618ba28
Merge pull request #7513 from ThomasWaldmann/friendlier-exceptions-master
refactor toplevel exception handling, see #6018
2023-04-15 15:03:27 +02:00
Thomas Waldmann
0b40e038ad
fix CompressionSpec validator and tests 2023-04-12 01:45:46 +02:00
Thomas Waldmann
05bf29f504
fix SortBySpec validator 2023-04-12 01:21:43 +02:00
Thomas Waldmann
0f923c8c4a
fix FilesCacheMode validator 2023-04-12 01:18:05 +02:00
Thomas Waldmann
6d38530ff1
fix ChunkerParams validator and tests 2023-04-12 01:15:46 +02:00
TW
1e1c922298
Merge pull request #7512 from ThomasWaldmann/prune-list-pruned-master
prune --list-kept/--list-pruned, fixes #7511
2023-04-08 17:37:33 +02:00
TW
33599b9115
Merge pull request #7509 from ThomasWaldmann/build-filter-microopt
build_filter: micro opt / easier code, fixes #3390
2023-04-08 17:11:40 +02:00
Thomas Waldmann
02b28882b3
prune --list-kept/--list-pruned, fixes #7511
use this to only list the kept (or pruned) archives.
--list-pruned and --list-kept also work in a additive way.

implied logging: support multiple prune options activating same logger

if any of --list / --list-kept / --list-pruned is used,
it should put the borg.output.list logger to INFO level,
otherwise to WARN level.
2023-04-08 15:40:07 +02:00
Thomas Waldmann
9f4f2b42e3
implement BORG_<CMD>_FORMAT env vars, fixes #5166
for now for: prune, list, rlist.
2023-04-08 00:53:53 +02:00
Thomas Waldmann
b0b3d9e08c
refactor toplevel exception handling, see #6018
as a first step, i moved all the traceback formatting
to format_tb.

also, it **first** prints the error and then the traceback
as additional information for a bug report, as suggested
by @jimparis in that ticket.
2023-04-08 00:12:06 +02:00
TW
48f3161248
Merge pull request #7510 from ThomasWaldmann/prune-format-master
prune --short/--format: enable users to format the list output, fixes #3238
2023-04-07 20:24:40 +02:00
TW
b8337b6f77
Merge pull request #7507 from ThomasWaldmann/ignore-empty-path-master
create: ignore empty paths, print warning, fixes #5637
2023-04-07 19:39:27 +02:00
TW
cfbaa3feae
Merge pull request #7506 from ThomasWaldmann/archive-size-nfiles
rlist: size and nfiles format keys
2023-04-07 19:38:54 +02:00
Thomas Waldmann
7686a721af
strip_components: remove bad test 2023-04-07 19:34:32 +02:00
Thomas Waldmann
a0e1110c16
prune --short/--format: enable users to format the list output, fixes #3238 2023-04-07 19:30:22 +02:00
Thomas Waldmann
8060d4100a
build_filter: micro opt / easier code, fixes #3390 2023-04-07 18:21:17 +02:00
Thomas Waldmann
08a2db9410
benchmark crud: use TemporaryDirectory below given path, fixes #4706 2023-04-07 18:05:19 +02:00
Thomas Waldmann
7df6301144
create: ignore empty paths, print warning, fixes #5637 2023-04-07 17:04:00 +02:00
Thomas Waldmann
7a2c757c69
rlist: add size and nfiles to format keys, fixes #6086 2023-04-07 16:37:17 +02:00
Thomas Waldmann
355a50225f
ArchiveFormatter.get_meta: add default value argument 2023-04-07 14:23:43 +02:00
TW
6662b8dadb
Merge pull request #7498 from ThomasWaldmann/mount-dir-check-master
mount: improve mountpoint error msgs, see #7496
2023-04-06 20:26:43 +02:00
Thomas Waldmann
12f9a26fad
common options: more Highlander options, fixes #6269 2023-04-06 19:11:58 +02:00
Thomas Waldmann
971438dfa0
import/export-tar: more Highlander options, fixes #6269 2023-04-06 17:53:27 +02:00
Thomas Waldmann
d0d8cd1edf
serve: more Highlander options, fixes #6269 2023-04-06 17:49:40 +02:00
Thomas Waldmann
1a6d1d0c7c
rlist: more Highlander options, fixes #6269 2023-04-06 17:47:56 +02:00
Thomas Waldmann
6ca2256f26
rcompress: more Highlander options, fixes #6269 2023-04-06 17:46:17 +02:00