sudo docker run -p 5001:5001 --name acme -d minio/minio server --address :5001 --config-dir /docker/minio/tenantconfig/acme /export/acme
Cloud Backup
title: Cloud Backup - How to Set Up Minio for Multi-Tenant Cloud Hosting created_at: 2018.08.09 updated_at: 2018.08.09 category: Cloud Backup --- :toc: macro :toc-title:
Minio Private Cloud Storage provides a free, open source, scalable cloud storage location for secure on-site data protection. Retrospect 15.1 for Windows and Mac are certified for Minio. Follow these step-by-step instructions for configuring Retrospect to integrate with Minio.
We will walk through setting up Minio for multi-tenant cloud backup hosting: using Minio to host multiple accounts for different customers.
Choose a NAS with Docker capabilities, as Minio requires Docker. We will use a Synology NAS in this guide.
Choose where on the NAS to put the tenant backups. We created volume4/tenant backup/
.
Choose where on the NAS to put tenant configuration files. We created volume1/docker/minio/tenant config/
.
Note that both places should not be within the Minio Docker instance as the data is not persistent.
Create a list of customers that will be housed in the NAS with unique text names and port for each one (i.e. Acme Holdings: 'acme' / port 5001).
Add a port forwarding rule in your firewall for those ports to go to your NAS.
Install Docker
Open Docker
Click on 'Registry' on the left hand pane
Search for 'minio'
Click to highlight minio/minio, and then click 'Download' at the top
Choose the 'latest' build
Click on 'Image' on the left hand pane, and you will see the minio/minio:latest image
Download and install PuTTY or your choice of client.
Enable SSH on the Synology (and remember to disable it again afterwards) by going to 'Control Panel - Applications - Terminal & SNMP'
Select the checkbox to 'Enable SSH server'
Open PuTTY
Enter the IP address of your Synology NAS, and click 'Open'
You will at this stage be prompted to 'login as:', so enter your username and password for your Synology NAS
To fire up your first docker minio instance, paste this command into PuTTY using copy and then the right click of your mouse, replacing "acme" with your first client’s short text name and their port number instead of "5001".
sudo docker run -p 5001:5001 --name acme -d minio/minio server --address :5001 --config-dir /docker/minio/tenantconfig/acme /export/acme
Repeat this process for each of your tenants. Each of these will be a Docker instance.
If you now look back at Docker on your Synology NAS, and click on 'Container' on the left hand pane, you will see a list of running instances.
You can verify the Minio instance is running by accessing the NAS at that port. You will see a login screen.
You can retrieve the Minio Access Key and Secret Key for each instance from the Docker GUI on Synology.
Click and highlight the container, and the click 'Details' at the top
Click 'Log' from the menu at the top, and scroll until you reveal the key’s.
Copy them, and keep them secure. You will need them to access the cloud storage from Retrospect backup server, or to login to the web client.
After you’ve entered them in, you’ll access the storage, and it’s empty and not persistent. We need to configure the persistent storage.
Click the on/off button to switch the container off. Or click 'Action-Stop'
Click the container to highlight, and click Edit
Click the Volume menu at the top, and then Add Folder
Create and select the folder that you have chosen to store the backup data for this tenant to. In our case, we used volume4/tenant backup/acme
then in the 'Mount path' field, we typed /export/acme
.
Click 'Add Folder' again
Create and select the folder that you have chosen to store the config data for this tenant to. In our case, we used volume1/docker/minio/tenant config/acme
then in the 'Mount path' field, we typed '/docker/minio/tenantconfig/acme'.
Switch the container back on, either with the on/off switch on the right hand side, or using 'Action-Start'.
Note that the new instance has a new access key and secret key, so retrieve those from the log.
You can now log into the Minio client on the NAS in your web browser using the new keys, create a bucket, upload a file, and see that file in the NAS. In our case, we saw it in volume1/docker/minio/tenant config/acme
.
Retrospect needs three pieces of information to access Minio:
Path – url_to_instance:port_number/your_bucket_name
Access Key – Use the Access Key provided by your Minio instance.
Secret Key – Use the Secret Key provided by your Minio instance.
クラウドストレージを宛先として追加する方法はシンプルです。Retrospect には「クラウド」と呼ばれる新しいセットタイプがあります。新規のバックアップセット/メディアセットを作成して、タイプに「クラウド」を選択してください。
Windows インターフェイス
Mac インターフェイス
Next you’ll need to enter your cloud storage credentials.
Windows インターフェイス
Mac インターフェイス
クラウドストレージの使用方法はシンプルです。クラウドセットを作成した後、新規スクリプトを作成するかそのクラウドセットを既存のスクリプトに追加して、「実行」をクリックしてください。バックアップが開始し、そのセットの内容が自分のクラウドストレージの場所にアップロードされます。実行/アクティビティの進行状況を追跡することができます。
Windows インターフェイス
Mac インターフェイス
環境設定で、クラウドバックアップおよびクラウド復元のための帯域幅調整が可能です。
Windows インターフェイス
Mac インターフェイス
Below are a number of tips for using cloud storage in Retrospect:
帯域幅計測ツール – この無料ツールでアップロードとダウンロードの帯域を計測しましょう: Speedtest.net。
バックアップの検証を無効化する – 検証を行うと、アップロードした全てのデータをもう一度ダウンロードします。クラウドバックアップではなぜこの機能を無効化した方が良いのか、詳細はクラウドバックアップ - クラウドストレージによるデータ保護のベストプラクティスでご確認ください。
Last Update: 2018年08月09日