1
0
Fork 0
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:
Marian Beermann 2017-04-06 11:36:50 +02:00
parent 03457e9bb7
commit 03ed4d31ca

View file

@ -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')