1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-26 09:47:49 +00:00

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

View file

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