How to run CubeBackup on a Synology NAS to backup Google Workspace data.


As a Google Workspace backup solution, CubeBackup is designed to run on Windows and Linux systems, and is not available on the Synology Package Center. However, If you’d like to deploy CubeBackup on a Synology NAS, you can install Docker and use our Docker image.

For TerraMaster NAS users, please refer to Initial Configuration on TerraMaster NAS. If you are using a NAS from other vendors, you can use this article as a reference.

NOTE:
CubeBackup is an x86 application and can only run directly on an x86-based NAS. If your NAS is using an ARM CPU, please consider running CubeBackup on a Windows or Linux computer using your NAS as the storage device.

Synology has its own Google Workspace backup solution, which is available in the Package Center on some Synology NAS models. It offers basic options and is also free. However, if you are looking for a more professional Google Workspace backup solution with great customer service, consider CubeBackup.

Installation instructions

Before you start, please install Docker in the Package Center first.

Experienced Docker users can easily pull the CubeBackup image cubebackup/cubebackup to a local repository, start the CubeBackup container, and follow the step-by-step setup guide to complete the initial configuration.

For users who are not familiar with Docker, please follow the instructions below to create a containerized CubeBackup instance to backup your Google Workspace data.

  1. Open Docker from the Main Menu in the Synology web console.
  2. Select Registry from the left panel and type CubeBackup in the search box. Right-click on the cubebackup/cubebackup entry and select Download this image. Download this CubeBackup image
  3. When prompted to choose a tag for the image, select latest from the dropdown list and click Select. Select the latest CubeBackup image
  4. In the left panel, switch to Image and check the download progress of the CubeBackup image. It may take a few moments to complete.
  5. When it has finished downloading, double-click on the image or click the Launch button at the top of the page. Check image downloading progress
  6. In the General Settings page, enter a Container Name (e.g. CubeBackup) and click the Advanced Settings button.

    NOTE:
    We recommend that you do not select the Enable resource limitation option. If resource limitation is necessary, please ensure that CubeBackup is given at least 2 GB of Memory on your NAS server.

    Open General Settings page

  7. Under the Advanced Settings tab, check Enable auto-restart and Create shortcut on desktop. Then select Web page and add port :8080 to the end of your NAS URL. Open Advanced Settings

  8. Switch to the Volume tab. You will need to create and bind mount the following four directories to your NAS server:

    • Click the Add Folder button and select the storage path of your backup data (e.g. backupData/cubebackupData). Enter /cubebackup_data in the Mount path field.
    • Repeat the same operation and select a storage path for the index data (e.g. backupData/cubebackupIndex), the log file (e.g. backupData/cube/log), and the storage configuration file of CubeBackup (e.g. backupData/cube/db) separately. Enter /cubebackup_index, /opt/cubebackup/log, /opt/cubebackup/db in the corresponding Mount path fields.
    • Create a new etc directory (e.g. backupData/cube/etc) on your Synology File Station, and upload this config.toml file to it. Then go directly back to the Docker Advanced Settings page, select the storage path of the new etc directory (e.g. backupData/cube/etc) and enter /opt/cubebackup/etc in the Mount path field. Bind Mount under Volume tab
  9. Switch to the Port Settings tab. Modify the mapped Local Port to 8080 in front of Container Port 80.

  10. You can leave the other fields as default. Click the Apply button at the bottom. Open Advanced Settings

  11. Click Next and check the settings of your CubeBackup container. Click Apply to launch the docker container for CubeBackup. Open Advanced Settings

  12. Now you can open the CubeBackup setup wizard by clicking the shortcut on the desktop, or by opening the URL <your_nas_ip>:8080 directly in the browser. You can go through the setup wizard following the step-by-step instructions.

    If you changed port 80 to a different port in Step 9, please add the port number to the end of the URL (e.g. <your_nas_ip>:8081).

Open CubeBackup shortcut

Manage the CubeBackup container on Synology

  1. You can open the CubeBackup web console on the NAS desktop by using the shortcut created in the previous steps. Alternatively, you can use another computer on the same network to open the URL <your_nas_ip>:8080 directly in a browser.

  2. We strongly recommend that you make a copy of the encryption key file and store it in a separate safe location. You can either find it at /opt/cubebackup/db/keys.json inside the docker container or from the mounted directory on the NAS (e.g. backupData/cube/db/keys.json).

    Please note that if the key file is lost, your encrypted backup data will be completely unrecoverable. CubeBackup Inc. does not have access to any key files and will be unable to help you!