2
0
Эх сурвалжийг харах

change-passphrase: print key location

Marian Beermann 8 жил өмнө
parent
commit
4b9a9f9b5e
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      borg/archiver.py

+ 3 - 0
borg/archiver.py

@@ -182,6 +182,9 @@ class Archiver:
             return EXIT_ERROR
         key.change_passphrase()
         logger.info('Key updated')
+        if hasattr(key, 'find_key'):
+            # print key location to make backing it up easier
+            logger.info('Key location: %s', key.find_key())
         return EXIT_SUCCESS
 
     @with_repository(lock=False, exclusive=False, manifest=False, cache=False)