Add snapshot ID to summary output

This commit is contained in:
Matthew Holt
2018-12-01 13:53:00 -07:00
committed by Alexander Neumann
parent f645306a18
commit 6cf13483b5
3 changed files with 6 additions and 29 deletions

View File

@@ -415,7 +415,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, term *termstatus.Termina
SetMinUpdatePause(d time.Duration)
Run(ctx context.Context) error
Error(item string, fi os.FileInfo, err error) error
Finish()
Finish(snapshotID restic.ID)
// ui.StdioWrapper
Stdout() io.WriteCloser
@@ -582,7 +582,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, term *termstatus.Termina
return errors.Fatalf("unable to save snapshot: %v", err)
}
p.Finish()
p.Finish(id)
if !gopts.JSON {
p.P("snapshot %s saved\n", id.Str())
}