Storing Your Backup to Google Drive
Would you like to keep a copy of your WordPress backups somewhere safe, away from your server? With Duplicator Pro, our backup and migration plugin, every backup can go straight to Google Drive, so you’ll always have one ready to restore after a crash, a hack, or a hosting problem. In this tutorial, we’ll show you how to store your backup on Google Drive, from connecting your account to restoring your site.
Connecting Your Google Drive Account
1. To get started, open Duplicator Pro » Storage in your WordPress dashboard. You’ll see the Default local storage already listed. It saves your backups on your server, in /wp-content/duplicator-backups.
2. Next, click Add New to create a new storage location:

3. Then, enter a Name for the new storage. Next to Type, click Select and choose Google Drive. Keep in mind that Google Drive storage only connects to your account’s own My Drive, not to a Shared Drive or a folder someone else shared with you:

4. After that, click Connect to Google Drive:

5. The Authorization section now shows 3 steps. For Step 1, click Authorize Google Drive. Google opens in a new tab. If it doesn’t, allow popups for your site from your browser’s address bar:

6. In the new tab, sign in to Google and choose your account. Then, click Continue to confirm the sign-in. Google lists the access Duplicator needs: it can only see and manage the Google Drive files it creates. To grant it, click Allow:

7. Next, Duplicator shows a unique token for your Google account. To copy it, click Copy:

8. Now, go back to your WordPress dashboard. For Step 2, paste the token into the input field:

9. For Step 3, click Finalize Setup. Duplicator Pro saves the storage and shows your connected Google Drive account:

10. Before you create a backup, it’s a good idea to test the connection. To do this, scroll to the bottom of the page and click Test Storage. Duplicator creates and deletes a small file on Google Drive to make sure the storage works:

11. Finally, check the Max Backups setting. It sets how many backups Duplicator Pro keeps in your Google Drive storage folder. When there are more, Duplicator deletes the oldest one. To keep every backup, set it to 0. If you change it after connecting, click Save Provider.
A free Google Drive account has 15GB of storage, so we recommend keeping the Max Backups value low. That way, Duplicator deletes old backups and keeps your storage space under control.
If the connection fails or stops working later, check out our guide to fixing Google Drive storage issues.
Creating and Storing a Backup on Google Drive
Now that Google Drive is set up as a cloud storage location, it’s time to store your first backup there. To do this, go to Duplicator Pro » Backups and click Add New:

Duplicator names the backup with the Backup Name Format, which uses dynamic tags like the date and your site title. To make the backup easier to find later, add your own text or pick different tags from Dynamic Tags:

Next, in the Storage section, check your Google Drive storage:

In most cases, a full backup of your site’s files and database is the right choice, since it saves your complete setup.
To create a full backup, keep the Full Site preset under Backup Filters, leave the Installer settings as they are, and click Next.
To save only part of your site, choose a different preset under Backup Filters. For example, click Database Only to create a database backup that saves only data like customer information, posts, and pages:

After you configure the backup, Duplicator scans your website. Review the scan results for any issues, then click Create Backup to continue:

When Duplicator finishes building the backup on your server, it uploads it to your Google Drive storage folder.
Setting Up Automatic Backups
Regular backups keep your website safe. If you only do manual backups, it’s easy to go too long without saving your data. A backup schedule solves this: Duplicator Pro creates backups for you at set times and sends each one to Google Drive.
To create a schedule, go to Duplicator Pro » Schedule Backups and click Add New. Under Storage, select your Google Drive storage, so every backup the schedule creates goes to Google Drive:

Then, choose how often the backup runs and click Save Schedule. For every schedule setting, from backup templates to start times, check out our guide to scheduling automatic backups.
Restoring Your Website Using Backups Stored on Google Drive
Duplicator Pro gives you 2 ways to restore a backup stored on Google Drive: from the Backups page, or by importing the backup file. Either one rolls your website back to an earlier version or recovers it after a crash.
Use the Download Option to Restore Your Website
Go to Duplicator Pro » Backups and click the Download button for the backup you need. If the backup isn’t in local storage, the Download From Remote Storage window opens. There, select your Google Drive storage and click Download:

After the download finishes, click Restore. To go through the restore installer step by step, check out our guide to restoring a backup.
Use a Backup Stored on Google Drive to Restore Your Website
If you make a coding mistake or run into an unexpected WordPress error, you’ll need to restore a backup. To do it with a backup file from Google Drive, open the folder that matches the Storage Folder you set when you connected Google Drive. Find the archive (the file with the ZIP icon), click its 3-dot menu and select Download:

Then, open your WordPress dashboard, go to Duplicator Pro » Import Backups and upload the archive. To finish the restore, follow our guide to importing a backup.
Disconnecting Google Drive Storage
If you no longer need this Google Drive storage, or you want to connect a different Google account, disconnect it from the storage settings. Before you do, keep in mind how Google handles the connection:
1. Go to Duplicator Pro » Storage, hover over your Google Drive storage and click Edit.
2. In the Authorization section, click Cancel Authorization.
Duplicator Pro disconnects the storage and reloads the page. The Connect to Google Drive button appears again, so you can connect the same or a different Google account by following the steps in Connecting Your Google Drive Account.
That’s it! You can now store your backups on Google Drive, by hand or on a schedule, and restore your site from them whenever you need to.
Would you like to compare other cloud storage options? Check out our Backup to the Cloud guide.