Skip to main content
Skip table of contents

Minio Data Migration

Follow these steps to migrate data from MinIO docker based container to Kubernetes container

  1. exec into MinIO docker container and navigate to the default location inside container

CODE
docker exec -it <minio_container_name> sh
cd data/
  1. Zip the bucket you want to migrate

CODE
zip -r <zip_directory_name> <bucket_to_zip>
  1. Exit out of MinIO container and copy the zipped file from inside container to host vm

CODE
exit
docker cp <minio_container_name>:<zipped_file_path> <host_vm_path>
  1. copy the zipped file to destination vm

CODE
scp <host_vm_zip_file_path> <user>@<dest_vm_ip>:<dest_vm_path>
  1. copy the zipped file to inside pod location

CODE
kubectl cp <path_to_file> <namespace>/<pod_name>:<inside_pod_path>
  1. unzip the file with following command

CODE
unzip <zipped_file> -d <path_to_unzip>
  1. restart the pod with following command

    CODE
    kubectl delete <pod_name> -n <namespace>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.