diff --git a/pkg/minikube/machine/machine.go b/pkg/minikube/machine/machine.go index 92329914e042..d006e4464464 100644 --- a/pkg/minikube/machine/machine.go +++ b/pkg/minikube/machine/machine.go @@ -168,7 +168,7 @@ func backup(h host.Host, files []string) error { errs := []error{} for _, src := range []string{"/etc/cni", "/etc/kubernetes"} { - if _, err := r.RunCmd(exec.Command("sudo", "cp", "--archive", "--parents", "--force", src, vmpath.GuestBackupDir)); err != nil { + if _, err := r.RunCmd(exec.Command("sudo", "rsync", "--archive", "--relative", src, vmpath.GuestBackupDir)); err != nil { errs = append(errs, errors.Errorf("failed to copy %q to %q (will continue): %v", src, vmpath.GuestBackupDir, err)) } } @@ -203,7 +203,7 @@ func restore(h host.Host) error { continue } src := path.Join(vmpath.GuestBackupDir, dst) - if _, err := r.RunCmd(exec.Command("sudo", "cp", "--archive", "--update", "--force", src, "/")); err != nil { + if _, err := r.RunCmd(exec.Command("sudo", "rsync", "--archive", "--update", src, "/")); err != nil { errs = append(errs, errors.Errorf("failed to copy %q to %q (will continue): %v", src, dst, err)) } } diff --git a/test/integration/ha_test.go b/test/integration/ha_test.go index 2b37b9858c6d..cdae834d97b4 100644 --- a/test/integration/ha_test.go +++ b/test/integration/ha_test.go @@ -35,8 +35,8 @@ import ( "k8s.io/minikube/pkg/util/retry" ) -// TestHA tests all ha (multi-control plane) cluster functionality -func TestHA(t *testing.T) { +// TestMutliControlPlane tests all ha (multi-control plane) cluster functionality +func TestMutliControlPlane(t *testing.T) { if NoneDriver() { t.Skip("none driver does not support multinode/ha(multi-control plane) cluster") }