This commit is contained in:
Vandal
2025-03-24 11:51:33 +05:30
parent a750d58a2d
commit a1d2f7f221
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -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 ())
+7
View File
@@ -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'
)