Get the Best WordPress Backup
& Migration Plugin Today
Get Duplicator Now

Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Storing Your Backup to Google Drive

Duplicator Pro can push your backups to the Google Drive cloud service. All packages are initially built on the local server and then pushed up to Google Drive using its API services.

Saving your site backups to a cloud storage service like Google Drive can keep your data secure from server errors or hacks. When you use off-site storage, you’ll always be able to access your website.

In this tutorial, we’ll show you how to back up a WordPress site to Google Drive!

Connect Google Drive Account

First, go to Duplicator Pro » Storage. On this page, you’ll see that the default storage location is your local server. This will save your website backups to this URL path: wp-content/backup-dup-pro/recovery.

To start using Google Drive, hit Add New:

Then, name the new storage location. Using the Type dropdown menu, choose Google Drive:

After this, you’ll see an option to Connect to Google Drive:

New steps will appear to walk you through the setup process. First, hit Authorize Google Drive:

Authorize Google Drive

This will open a new tab, where you’ll need to sign into your Google account using your Gmail address. You should also give Duplicator access to your Google Drive account.

Giving Duplicator access to Google account

Once you do, you’ll get a unique code:

Duplicator access token for Google Drive storage

Copy this and go back to your WordPress dashboard. Then, paste the Google Drive API code into the Step 2 text box:

Paste Google authorization code

Lastly, click on Finalize Setup. If the connection is successful, you’ll see details about your Google account and quota usage:

Connected Google Drive account

Before you create a backup, you can authenticate this connection. Go to the bottom of this page and hit Test Google Drive Connection. This will send a small file to and from your account:

Test Google Drive connection

You can also consider adjusting the Max Packages setting. This will be the number of backups that are allowed in your Google Drive account at one time. 

If you’re using a free account, you’ll have to avoid exceeding 15GB of backups. So, don’t set the max packages value too high. Duplicator will delete old packages to optimize your storage space

Create a Google Drive Backup

Now that you’ve added your Google Drive account as a cloud storage location, it’s time to create your first cloud backup. You can do this by finding Duplicator Pro » Packages » Create New:

Create new backup

Duplicator will automatically generate a name for your backup package. However, you can also rename it so it’s more memorable for you. This will make it easy to find if you need to restore it later:

Name backup package

Next, expand the Storage settings. Here, you’ll see that Google Drive is now listed as a backup option. Be sure to select it:

Select Google Drive storage

Usually, you’ll want to do a full backup of your WordPress site’s files and database. This will save the complete setup of your site. 

To create a full backup, don’t make any changes to the archive or installer files before hitting Next.

However, you can easily edit the archive file to only include certain data in the backup. For example, feel free to do a database backup if you just want to save data like customer information, posts, or pages:

Backup WordPress database

After you configure your backup, Duplicator will scan your website. You can look over this evaluation for any issues. To continue, click on Build:

Duplicator package scan

When Duplicator finishes building your package, it will be transferred to your Google Drive folder. 

Set Up Automatic Backups

As a website owner, you’ll know how important it is to regularly back up your website. If you always do manual backups, you may not save your data as often as you should. To make this process easier, you can set up automatic backups.  

If you create an automatic backup schedule, your website will be backed up at a certain time. This ensures that you always have a copy of your site on hand in case of an emergency.

To set up automatic backups in Duplicator, go to Duplicator Pro » Schedules. Then, click on Add New:

Create website backup schedule

You can name your schedule at the top of the page. If you want to make customizations to the default package settings, consider creating a package template. Alternatively, Duplicator will simply perform a full backup:

Name backup schedule

Under Storage, select Google Drive. This will send every automatic backup to the cloud:

Backup schedule cloud storage

Then, choose a schedule for your automatic backups. Duplicator supports monthly, weekly, daily, and hourly backups. For each of these options, you’ll be able to customize when you’d like the backup to start:

Backup schedule

You can also select a Start Time for the schedule. Lastly, select the checkbox next to Enable This Schedule:

Enable cloud backup schedule

After you save this scheduled backup, your website will be automatically backed up to Google Drive!

Restore Your Google Drive Backup

If you accidentally make a coding mistake or experience an unexpected WordPress error, you’ll need to restore a backup. To do this, open your Google Drive account and find the folder with your Duplicator backups:

Google Drive Duplicator backups

Here, you’ll see your recent backup files. Select your archive file and hit Download:

Download Google Drive archive file

Then, open your WordPress dashboard and go to Duplicator Pro » Import. Instead of manually uploading the file to a File Manager or File Transfer Protocol (FTP) client, you’ll be able to directly import your backup:

Import website archive

Drag and drop your archive file into the upload box. After it uploads, you’ll see information about the backup. If everything looks correct, continue to the next page:

Uploaded cloud backup

Now you’ll see an overview of your current site. To rewrite it with the uploaded archive, click on Launch Installer:

Launch site installer

Then, the Duplicator recovery wizard will walk you through the process of restoring a backup. First, be sure to select Restore single site as the Install Type:

Restore cloud backup

Next, hit Validate. Duplicator will provide warnings if there is anything wrong with the installation. To continue, accept the terms and notices and click on Next:

Cloud backup validation

As a final step, confirm that you want to proceed with the backup restoration:

Confirm cloud backup installation

Duplicator will automatically replace your current site with the saved backup. Once finished, you’ll see an Admin Login button:

Cloud backup restore

Now you can sign back into your restored website!

Was this article helpful?

Related Articles