Skip to content

Commit

Permalink
cmd/incus-migrate: Don't copy converted VM image
Browse files Browse the repository at this point in the history
If we convert a VM disk image when importing it, we shouldn't then copy
that temporary image to the final storage location.

Signed-off-by: Mathias Gibbens <mathias.gibbens@futurfusion.io>
  • Loading branch information
gibmat committed Sep 24, 2024
1 parent ba93e12 commit 9af3679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/incus-migrate/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func rsyncSendSetup(ctx context.Context, path string, rsyncArgs string, instance
}

if instanceType == api.InstanceTypeVM {
args = append(args, "--exclude", "root.img")
args = append(args, "--exclude", "*.img")
}

if rsync.AtLeast("3.1.3") {
Expand Down

0 comments on commit 9af3679

Please sign in to comment.