volumes batch-migrate

acloud-toolkit volumes batch-migrate

Batch migrate all volumes within a namespace to another storage class


Batch migrate all volumes from a source storage class within a namespace to another storage class. For each PVC that has the source storage class within the namespace, this will create a new PVC using the target storage class, and copy all file contents over to the new volume. The existing persistent volume will remain available in the cluster.

acloud-toolkit volumes batch-migrate [flags]


      --dry-run                       Perform a dry run of the batch migrate
  -h, --help                          help for batch-migrate
  -s, --source-storage-class string   name of the source storageclass
  -n, --target-namespace string       Namespace where the migrate job will be executed (default "default")
  -t, --target-storage-class string   name of the target storageclass
      --timeout int32                 Timeout of the context in minutes (default 300)