output which source and target snapshot belong together

This commit is contained in:
Michael Eischer
2025-11-23 22:01:53 +01:00
parent e79b01d82f
commit f9e5660e75
2 changed files with 15 additions and 4 deletions
+5 -1
View File
@@ -225,6 +225,10 @@ func copyTreeBatched(ctx context.Context, srcRepo restic.Repository, dstRepo res
return err
}
// add a newline to separate saved snapshot messages from the other messages
if len(batch) > 1 {
printer.P("")
}
// save all the snapshots
for _, sn := range batch {
err := copySaveSnapshot(ctx, sn, dstRepo, printer)
@@ -322,6 +326,6 @@ func copySaveSnapshot(ctx context.Context, sn *data.Snapshot, dstRepo restic.Rep
if err != nil {
return err
}
printer.P("snapshot %s saved", newID.Str())
printer.P("snapshot %s saved, copied from source snapshot %s", newID.Str(), sn.ID().Str())
return nil
}