Documentation shown here guides you how to backup the Minio
data.
NOTES: The document shown here is for reference only, you can also look for other available data backup alternatives based on your real case.
-
You need to install mc that is the MinIO CLI.
-
Get the
access_key
andsecret_key
of MinIO.$ kubectl get secret minio-access-secret -n cluster-sample-ns -o jsonpath='{.data.accesskey}' | base64 --decode admin $ kubectl get secret minio-access-secret -n cluster-sample-ns -o jsonpath='{.data.secretkey}' | base64 --decode minio123
-
Please make sure you have the correct MinIO address to access.
Create the directory to storage Harbor Data in the backup pod, please make sure you have the Read/Write Permissions.
mkdir {minio_backup_directory}
Setup mc config.
mc --insecure -C {minio_backup_directory} config host add minio \ http(s)://{minio_address}:9000 {minio_access_key} {minio_secret_key}
Start backup minio data
mc --insecure -C {minio_backup_directory} \
cp -r minio/harbor {minio_backup_directory}
Make sure that all data are backuped in the {minio_backup_directory}.