copy: Remove separate SaveIndex in restic copy

Flush does this now.
This commit is contained in:
greatroar 2020-06-19 12:15:37 +02:00 committed by Michael Eischer
parent 7048cc3e58
commit 4508d406ef
1 changed files with 1 additions and 8 deletions

View File

@ -120,14 +120,7 @@ func runCopy(opts CopyOptions, gopts GlobalOptions, args []string) error {
if err = dstRepo.Flush(ctx); err != nil {
return err
}
debug.Log("flushed packs")
err = dstRepo.SaveIndex(ctx)
if err != nil {
debug.Log("error saving index: %v", err)
return err
}
debug.Log("saved index")
debug.Log("flushed packs and saved index")
// save snapshot
sn.Parent = nil // Parent does not have relevance in the new repo.