QNAP Systems, Inc. - Network Attached Storage (NAS)



How to backup your Gmail account to a QNAP Turbo NAS?

Since its introduction in 2004, Gmail has become the email service of choice for countless numbers of people and organizations as it provides a perfect cross-device user experience and is integrated with Google’s many other services. In this article, we will tell you how you can use the QNAP Gmail Backup app to archive all of your emails to a Turbo NAS.

The Gmail Backup app provides a way to backup and recover emails in both individual and domain accounts. Gmail can be backed up by schedule and the content previewed through a web management interface. Backed up mail can be restored to the original mail account or to other accounts.

Supported models: Only x86-based Turbo NAS are supported (including the TS-x51, TS-x53, TVS-x63, TS-x69, TS-x70, TVS-x71, TS-x79, and TVS-x80). Please check the QNAP website for more details.

Setting up the Gmail backup and restore service

Follow the below instructions for the first time setup of the Gmail backup service.

  1. Install the Gmail Backup app.
  2. Create a Gmail backup job.
  3. Manage your Gmail Backup jobs.
  4. Restore email on the Turbo NAS to the Gmail account.

1. Install the Gmail Backup app

Go to the QTS App Center, search for “Gmail Backup”, and then select “Add To QTS”.

2. Create a Gmail backup job

When opening the Gmail Backup app for the first time, you will be asked to create a backup job.

Gmail Backup supports two types of backup job:

  • To backup an individual account, enter the Gmail email address and select “Next”.

    The app must be authorized to access your Google account. Click “Google OAuth2” to open the Authorization page. To learn more about OAuth, please visit: http://wikipedia.org/wiki/OAuth.

    Your web browser will take you to Google OAuth authorization page. Select “Allow access”.

    You will be given an Authentication code. Copy and paste it from this page into app. To verify the code select “Account Test”.

  • To backup a domain account, enter the domain name and follow the below steps to get the key.
  • A. Register a service account
    1. Login to https://console.developers.google.com
    2. Create a new Project

    3. Enter the “Home page”, and in “Dashboard” > “Use Google APIs”, enable the:
      • Admin SDK
      • Gmail API

    4. In “Permissions” > “Service accounts”, click “Create service account”.

    5. Select file format P12, click “Create”, and a Key File titled xxxxx.p12 will be download. Keep this file safe.

    6. Return to “Service accounts” and click “View Client ID” find the below screen:
      • Client ID: Used for setting domain security
      • Email address: Used for creating the Gmail domain backup task


  • B. Set Domain Security
    Login to http://www.google.com/work/apps/business/
    1. In “Admin Console” > “Security” > “API reference”, check “Enable API access”

    2. In “Admin console” > “Security” > “Advanced Settings” > “Manage API Client access”

      Enter the Client ID in “Client name”, then copy & paste the below API to the “One or More API Scopes” field, and click “Authorize”
      • https://apps-apis.google.com/a/feeds/group/#readonly,
      • https://www.googleapis.com/auth/admin.directory.user.readonly,
      • https://www.googleapis.com/auth/apps.groups.migration,
      • https://mail.google.com/


  • C. Configure Gmail backup
    • Domain: Enter the domain name
    • Service account : Enter email address of the created project you created (ex: xxxxxxxxxxxxxxxxxxxxxxx@developer.gserviceaccount.com)
    • Admin name: The domain administrator account
    • Key file: The Key File named xxxxxxxxx.p12 you received when creating the project
    • Click “Next” or “Account Test” to verify the settings
    • Click “Select Member” to select a domain account for backup

After authorizing your account, you can configure the backup job:

  • Backup path: The destination folder for saving the backup email.
  • Backup all mail: This will back up all of your emails. Alternatively, you can select a time period to back up emails from specific dates.
  • Backup frequency: How often the Turbo NAS will back up your email.

Then select “Next”.

In the final step, the system will ask you to confirm the settings.

3. Manage your Gmail Backup jobs

In the “Backup” page, you can manage saved backup jobs.

  • Create: To create a new backup job.
  • Backup Now: To start a backup job.
  • Edit: To change the configuration of a backup job. If you change your Gmail password or authorization key, you must change them here.
  • Delete: Removes a backup job.
  • Select Member: Allows you to select specific members during domain backup jobs.
  • Stop: To stop the running backup job.

4. Restore email on the Turbo NAS to the Gmail account

If you need to restore email stored on the Turbo NAS, you can do the following actions:

  • Restore all of the backup mail to the origin account:
    Check the backup job and select “Restore”. This will not affect emails on the Gmail server.

  • View and download saved emails:
    Check the backup job and select “View”.

    You will find a list of emails. Using the buttons you can view, delete and download them.

  • Migrate the backup mail to an assigned Gmail account
    Check the backup job and select “Migrate”.

    Enter a Gmail email address and select “OK”.

    The app must be authorized to access the Google account. Click “Google OAuth2” to open the Authorization page. Your web browser will go to the Google OAuth authorization page, Select “Allow access”. Copy the code and paste on the blank frame and click “OK”.

Release date: 2014-11-14
Was it helpful?
Thank you for your feedback.
Thank you for your feedback. If you have any question, please contact support@qnap.com
58% of people think it helps.