mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 15:12:00 +00:00
remove remainders of borg key change-algorithm
most was already removed previously, just this was overlooked.
This commit is contained in:
parent
a7bc1f88c1
commit
c51a0626de
1 changed files with 0 additions and 9 deletions
|
@ -89,15 +89,6 @@ def do_change_location(self, args, repository, manifest, key, cache):
|
||||||
|
|
||||||
return EXIT_SUCCESS
|
return EXIT_SUCCESS
|
||||||
|
|
||||||
@with_repository(exclusive=True, compatibility=(Manifest.Operation.CHECK,))
|
|
||||||
def do_change_algorithm(self, args, repository, manifest, key):
|
|
||||||
"""Change repository key algorithm"""
|
|
||||||
if not hasattr(key, "change_passphrase"):
|
|
||||||
print("This repository is not encrypted, cannot change the algorithm.")
|
|
||||||
return EXIT_ERROR
|
|
||||||
key.save(key.target, key._passphrase, algorithm=KEY_ALGORITHMS[args.algorithm])
|
|
||||||
return EXIT_SUCCESS
|
|
||||||
|
|
||||||
@with_repository(lock=False, exclusive=False, manifest=False, cache=False)
|
@with_repository(lock=False, exclusive=False, manifest=False, cache=False)
|
||||||
def do_key_export(self, args, repository):
|
def do_key_export(self, args, repository):
|
||||||
"""Export the repository key for backup"""
|
"""Export the repository key for backup"""
|
||||||
|
|
Loading…
Reference in a new issue