From 823d0afd6e8232336ddca6cfecd3436f2ba224c7 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 8 Nov 2020 20:15:44 +0100 Subject: [PATCH] backup: Always print parent snapshot info --- cmd/restic/cmd_backup.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/restic/cmd_backup.go b/cmd/restic/cmd_backup.go index da924d239..a0831b16e 100644 --- a/cmd/restic/cmd_backup.go +++ b/cmd/restic/cmd_backup.go @@ -532,8 +532,12 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, term *termstatus.Termina return err } - if !gopts.JSON && parentSnapshotID != nil { - p.V("using parent snapshot %v\n", parentSnapshotID.Str()) + if !gopts.JSON { + if parentSnapshotID != nil { + p.P("using parent snapshot %v\n", parentSnapshotID.Str()) + } else { + p.P("no parent snapshot found, will read all files\n") + } } selectByNameFilter := func(item string) bool {