$ sudo ls -la /var/lib/kubelet/pods/1cba5f34-7f3c-4670-a347-6fc0f8529227/volumes/kubernetes.io~local-volume/local-pv-c67e4d39
total 8
drwxr-xr-x 2 root root 4096 Jul 28 2023 .
drwxr-x--- 3 root root 4096 Jan 3 08:25 ..
Or you simply just check the /data/ dir in the minio container:
I have no name!@minio-6bd54747b-7b76m:/opt/bitnami/minio-client$ ls -la /data/
total 8
drwxr-xr-x 2 root root 4096 Jul 28 2023 .
drwxr-xr-x 1 root root 4096 Feb 16 08:59 ..
To back up and restore your data, I can recommend using the MinIO client.
Additionally, you should make sure that your PVs have persistentVolumeReclaimPolicy: Retain so the don't delete local data by accident.
If MINIO_DATA_DIR is not set, minio will use the default "local" container path and will lose data if the container crashes.
To double-check this, connect to your server running the currently documented config and find the locally PV mounted by e.g.
lsblk
Listing the mounted PV shows no entries
Or you simply just check the
/data/
dir in the minio container:To back up and restore your data, I can recommend using the MinIO client. Additionally, you should make sure that your PVs have
persistentVolumeReclaimPolicy: Retain
so the don't delete local data by accident.