mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 18:28:42 +00:00
use create=True when creating new keys, fixes #6036
This commit is contained in:
parent
d299b8bc9c
commit
7edba854b2
1 changed files with 1 additions and 1 deletions
|
@ -679,7 +679,7 @@ def create(cls, repository, args):
|
|||
key.init_from_random_data()
|
||||
key.init_ciphers()
|
||||
target = key.get_new_target(args)
|
||||
key.save(target, passphrase)
|
||||
key.save(target, passphrase, create=True)
|
||||
logger.info('Key in "%s" created.' % target)
|
||||
logger.info('Keep this key safe. Your data will be inaccessible without it.')
|
||||
return key
|
||||
|
|
Loading…
Reference in a new issue