mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-08-06 16:23:00 +02:00
add path
This commit is contained in:
@@ -30,11 +30,15 @@ def recreate_archive(
|
||||
|
||||
repo_archive_arg = make_repository_archive_flags(repository, archive, local_borg_version)
|
||||
exclude_flags = make_exclude_flags(config)
|
||||
# handle path from recreate_arguments
|
||||
path_flag = ('--path', recreate_arguments.path) if recreate_arguments.path else ()
|
||||
|
||||
|
||||
recreate_cmd = (
|
||||
(local_path, 'recreate')
|
||||
+ (('--remote-path', remote_path) if remote_path else ())
|
||||
+ repo_archive_arg
|
||||
+ path_flag
|
||||
+ (('--log-json',) if global_arguments.log_json else ())
|
||||
+ (('--lock-wait', str(lock_wait)) if lock_wait else ())
|
||||
+ (('--info',) if logger.getEffectiveLevel() == logging.INFO else ())
|
||||
|
||||
@@ -1562,6 +1562,13 @@ def make_parsers():
|
||||
'--archive',
|
||||
help='Name of the archive to recreate',
|
||||
)
|
||||
recreate_group.add_argument(
|
||||
'--path',
|
||||
metavar='PATH',
|
||||
dest='paths',
|
||||
action='append',
|
||||
help='Path to recreate the repository/archive',
|
||||
)
|
||||
recreate_group.add_argument(
|
||||
'-h', '--help', action='help', help='Show this help message and exit'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user