Using BackupAssist with a Synology NAS & MinIO
BackupAssist Cloud Backup jobs include an option to back up to S3-compatible storage. The storage can be a cloud service or your own private cloud.
This guide explains how to back up to your own private cloud using a Synology NAS and MinIO cloud storage software.
The following technologies will be used
- A Synology NAS - this network storage device will be used to provide physical storage and run the MinIO application.
- Docker - this package is used to create virtual containers to run applications. It will be used to create MinIO containers.
- MinIO S3-compatible cloud storage application. It will be used to share disk space on the NAS as private cloud storage.
- BackupAssist Classic will be used to create cloud backups and save them to the S3-compatible cloud storage.
The Synology NAS model must support Docker and be configured so that it can be accessed via the internet.
Set up MinIO on the Synology NAS
These following steps explain how to set up and configure a private cloud destination using a Synology NAS and MinIO:
- Create a Shared Folder.
- Log in to the management portal for your Synology NAS.
- Open the Control Panel.
- Choose Shared Folder from the side menu.
- Select Create from the top menu to launch the Shared Folder Creation Wizard.
- Follow the wizard's steps to create a shared folder called minio.
- Install Docker.
- Open the Synology Package Center.
- Click All Packages on the left menu.
- Locate Docker and install it.
- Run Minio.
- Open Docker on the Synology NAS.
- Select Registry from the side menu.
- Search for minio/minio.
- Select minio.
- Download the minio image.
- Choose Image from the side menu.
- Select minio.
- Click Launch to open MinIO.
- Configure MinIO.
This folder will be shared for MinIO to use as cloud storage.
Docker will use a MinIO image to create a MinIO container.
To install Docker:
You can now use Docker to create a MinIO container and configure MinIO to use the shared folder that you named minio.
This will open the Create Container wizard.
- Click Advanced Settings on the Create Container wizard.
- Select Volume from the top menu.
- Click Add Folder and choose the minio folder you created earlier, and click Select.
- Set the mount path for this folder to
/data
. This folder will be used as the cloud storage location. - Click Add Folder and locate /docker/minio/config, and click Select.
- Set the mount path for this folder to
/root/.minio
. This folder will be used to store MinIO’s configuration files. - Select Port Settings from the top menu, and set the Local Port you want to use. The port you choose determines what URL needs to be entered when configuring BackupAssist to connect to MinIO.
- Select Environment from the top menu, and set the MinIO server Execution Command to
minio server /data
. - Apply the changes.
- Click Next and Apply on the Create Container wizard.
- The first screen shown in the Create Container wizard is to select the Network. This used to be under Advanced Settings > Network. Just click Next to accept the default “bridge” setting, or adjust to use a specific network, or to use the same network as Docker and then click Next.
- The second screen shown is the General Settings screen, which used to be the first screen shown. Adjust the settings here as you like, but then click the Advanced Settings button.
- In Advanced Settings the Volumes tab is no longer in the Advanced Settings, nor is the Port Settings tab. The Execution Command section now has its own tab (which used to be in the Environment tab) so select this tab and set the MinIO server Execution Command to
minio server /data
and Save the changes to close the Advanced Settings. - Click Next to show the Port Settings screen, which used to be a tab in the Advanced Settings. Set the Local Port to use to access MinIO and click Next. Remember the port you use here, as you will need it when configuring the backup job to connect to MinIO.
- Now configure the Volume Settings by firstly clicking Add Folder and choosing the minio folder you created earlier, and then click Select.
- Set the mount path for this folder to
/data
. This folder will be used as the cloud storage location. - Then click Add Folder again, locate
/docker/minio/config
, and click Select. - Set the mount path for this folder to
/root/.minio
. This folder will be used to store MinIO’s configuration files. - Click Next and then Done to complete the wizard.
MinIO is now set up on the Synology NAS and ready to be used by BackupAssist Classic as S3-compatible storage.
Get the settings for BackupAssist
To create a BackupAssist Cloud Backup job, you need to get the URL and security keys that MinIO uses to share the cloud storage.
The URL will be the URL of the NAS with the port number for the MinIO server configured above.
To locate the security keys:
- Open the Synology Package Center.
- Open Docker.
- Click Container on the side menu.
- Choose the MinIO application.
- Click the Details button.
- Select Log from the top menu.
- Copy the Accesskey and Secretkey.
Create a BackupAssist Cloud Backup job
Now that you have a Windows machine with MinIO managed cloud storage, you can back up to it using BackupAssist.
Create a Cloud Backup job as documented on the Cloud Backup page, and select S3-compatible cloud storage in the Destination media step. Then use the Set up destination step to enter the Amazon S3 Compatible Bucket settings as explained in the Cloud backup page.
Use the MinIO settings as follows:
- Copy the URL into the URL field. This is the URL for the NAS plus the port number for the MinIO server. For example: https://192.168.1.3:9000.
- Copy the Accesskey into the Access Key ID field.
- Copy the Secretkey into the Secret Access Key field.