mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
recreate: expand placeholders
This commit is contained in:
parent
03457e9bb7
commit
03ed4d31ca
1 changed files with 2 additions and 1 deletions
|
@ -1347,10 +1347,11 @@ def do_recreate(self, args, repository, manifest, key, cache):
|
|||
|
||||
if args.location.archive:
|
||||
name = args.location.archive
|
||||
target = replace_placeholders(args.target) if args.target else None
|
||||
if recreater.is_temporary_archive(name):
|
||||
self.print_error('Refusing to work on temporary archive of prior recreate: %s', name)
|
||||
return self.exit_code
|
||||
recreater.recreate(name, args.comment, args.target)
|
||||
recreater.recreate(name, args.comment, target)
|
||||
else:
|
||||
if args.target is not None:
|
||||
self.print_error('--target: Need to specify single archive')
|
||||
|
|
Loading…
Reference in a new issue