1
0
Fork 0
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:
Thomas Waldmann 2022-02-04 19:21:25 +01:00
parent d299b8bc9c
commit 7edba854b2

View file

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