The DC/OS Minio service allows you to restore the backed up data in AWS S3-compatible storage to the DC/OS Minio storage system. A restoration plan is especially useful in case disk or node failure prevents you from accessing your data. However, Minio is resilient to half the number of disk failures. The restoration plan will be useful if more than half the number of disks are corrupted.
Prerequisites
The following values are required to restore your data:
- ACCESS_KEY_ID
- SECRET_ACCESS_KEY
- S3_BUCKET
The restore task is responsible for restoring the data in the DC/OS Minio storage system. The restore plan must be launched against each backed-up S3-compatible storage bucket. Once this plan is executed, it will restore the data in the specified bucket in AWS S3-compatible storage to DC/OS Minio.
Restore
-
Run the following command to start your restore plan:
{ dcos miniod --name=<SERVICE_NAME> plan start restore \ -p ACCESS_KEY_ID=<ACCESS_KEY> \ -p SECRET_ACCESS_KEY=<SECRET_ACCESS_KEY> \ -p S3_BUCKET=<BUCKET_NAME> }
-
The restore task will run the
mc mirror
command, takingACCESS_KEY_ID
,SECRET_ACCESS_KEY
andS3_BUCKET
as parameters. -
The restore task will create a bucket with the same name which was in the DC/OS Minio storage system previously; it will drop the prefix service name from the bucket which was attached in S3-compatible storage in the backup plan.
Figure 2. - Restoring the data
A restore
plan will execute the two aforementioned tasks serially.