diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-22 12:33:26 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-22 12:33:26 -0400 |
commit | 336a7003b59df18326d396846bacbb69f119c7c7 (patch) | |
tree | cb17dbc1d4b6c07517e4e391f57e766e47dc4f17 /keysafe.hs | |
parent | 188cb6942a43b033d4ac8e233955522dd36a70f2 (diff) | |
download | keysafe-336a7003b59df18326d396846bacbb69f119c7c7.tar.gz |
change backup log format so it can also log when backup of a key was skipped
This will be used later when keysafe --autostart prompts if the user wants
to back up their gpg key. Making the change now before the backup log
format gets frozen.
This commit was sponsored by Josh Taylor on Patreon.
Diffstat (limited to 'keysafe.hs')
-rw-r--r-- | keysafe.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,7 +19,7 @@ import Cost import SecretKey import Share import Storage -import BackupRecord +import BackupLog import AutoStart import HTTP.Server import ServerBackup @@ -114,10 +114,10 @@ backup cmdline storagelocations ui tunables secretkeysource secretkey = do _ <- sis `seq` addpercent 25 let step = 50 `div` sum (map S.size shares) storeShares storagelocations sis shares (addpercent step) - backuprecord <- mkBackupRecord (mapMaybe getServer locs) secretkeysource passwordentropy + backuplog <- mkBackupLog $ backupMade (mapMaybe getServer locs) secretkeysource passwordentropy case r of StoreSuccess -> do - storeBackupRecord backuprecord + storeBackupLog backuplog if queued then do willautostart <- isAutoStartFileInstalled |