mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-04 10:39:50 +00:00
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=....
This commit is contained in:
parent
dbe1c98cb3
commit
cd23d810d3
1 changed files with 4 additions and 4 deletions
|
@ -4652,10 +4652,10 @@ class Archiver:
|
|||
'If no MODE is given, `if-different` will be used. '
|
||||
'Not passing --recompress is equivalent to "--recompress never".')
|
||||
archive_group.add_argument('--chunker-params', metavar='PARAMS', dest='chunker_params', action=Highlander,
|
||||
type=ChunkerParams, default=CHUNKER_PARAMS,
|
||||
help='specify the chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, '
|
||||
'HASH_MASK_BITS, HASH_WINDOW_SIZE) or `default` to use the current defaults. '
|
||||
'default: %s,%d,%d,%d,%d' % CHUNKER_PARAMS)
|
||||
type=ChunkerParams, default=None,
|
||||
help='rechunk using given chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, '
|
||||
'HASH_MASK_BITS, HASH_WINDOW_SIZE) or `default` to use the chunker defaults. '
|
||||
'default: do not rechunk')
|
||||
|
||||
subparser.add_argument('location', metavar='REPOSITORY_OR_ARCHIVE', nargs='?', default='',
|
||||
type=location_validator(),
|
||||
|
|
Loading…
Add table
Reference in a new issue