diff --git a/lxd/storage/backend_lxd.go b/lxd/storage/backend_lxd.go index 656938a81330..9c626e8f790f 100644 --- a/lxd/storage/backend_lxd.go +++ b/lxd/storage/backend_lxd.go @@ -733,7 +733,7 @@ func (b *lxdBackend) CreateInstanceFromBackup(srcBackup backup.Info, srcData io. sourceSnapshots := make([]drivers.Volume, 0, len(srcBackup.Config.VolumeSnapshots)) for _, volSnap := range srcBackup.Config.VolumeSnapshots { - snapshotName := drivers.GetSnapshotVolumeName(vol.Name(), volSnap.Name) + snapshotName := drivers.GetSnapshotVolumeName(srcBackup.Name, volSnap.Name) snapshotStorageName := project.Instance(srcBackup.Project, snapshotName) sourceSnapshots = append(sourceSnapshots, b.GetVolume(volType, contentType, snapshotStorageName, volSnap.Config)) }