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.
- Install the Gmail Backup app.
- Create a Gmail backup job.
- Manage your Gmail Backup jobs.
- Restore email on the Turbo NAS to the Gmail account.
Go to the QTS App Center, search for “Gmail Backup”, and then select “Add To QTS”.
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
- Login to https://console.developers.google.com
Create a new Project
Enter the “Home page”, and in “Dashboard” > “Use Google APIs”, enable the:
- Admin SDK
- Gmail API
In “Permissions” > “Service accounts”, click “Create service account”.
Select file format P12, click “Create”, and a Key File titled xxxxx.p12 will be download. Keep this file safe.
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/
In “Admin Console” > “Security” > “API reference”, check “Enable API access”
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”
- In “Admin Console” > “Security” > “API reference”, check “Enable API access”
C. Configure Gmail backup
- Domain: Enter the domain name
- Service account : Enter email address of the created project you created (ex: firstname.lastname@example.org)
- 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.
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.
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”.