No matter how much I stress, backing up your WordPress site to your local computer or cloud is a mandatory task. As a website owner, you should never take light of it or ignore it. Of course, many web hosts like SiteGround and WP Engine will offer you with their own automated daily or weekly backups, but you just cannot have a single backup location that is not fully under your control.
That is the reason why many WordPress backup plugins offer features that can automatically backup your WordPress site to Dropbox, Google Drive, and many other cloud services.
So, in this quick and detailed guide, let us get to know how to backup WordPress site to Google Drive in simple and easy steps.
Why Backup to Google Drive?
The arguments are simple and straightforward.
- With every Gmail account, you get 15GB for free Google Drive cloud storage space.
- Highly reliable service and the chance of losing your backup is quite low. Unless it is your deliberate mistake.
- Highly secure service.
- You can access and download your backups whenever and wherever you want.
- If you want to, you can share your backups between your team.
Backup WordPress to Google Drive
To backup WordPress to Google Drive, we are going to use a plugin called UpdraftPlus.
UpdraftPlus is a free plugin which is available through the WordPress plugin repository. The good thing about the plugin is that you can configure it to automatically backup WordPress to Google Drive on scheduled time. So, download and install it like any other WordPress plugin.
Once installed, activate the plugin and you are good to configure the plugin to backup WordPress to Google Drive.
To start off, open up the UdraftPlus settings page by navigating to “Settings” and then “UpdraftPlus Backups.”
Setup the Schedule and Select Storage
Here in the settings page, navigate to the “Settings” tab. Here, we need to set up the automatic backup intervals for both the files and database.
Simply select the backup frequency from the drop-down menu and also enter how many number of backups you want to retain.
In my case, I’m selecting the Daily option as the backup interval and 10 backups to retain. Which simply means that the plugin will backup my WordPress site daily and retains 10 backups at any given point of time.
Which simply means that the plugin will backup my WordPress site daily and retains 10 backups at any given point of time.
Now, scroll down and select your backup destination as “Google Drive” next to “Choose your remote storage.” This action will bring some extra options and also gives you the “authorized redirect URI,” we are going to need that URI in future steps. Don’t yet save the changes.
Configuring Google Drive
Before UpdraftPlus can backup WordPress to Google Drive, you need to configure Google Drive to activate Drive API and get the Client ID and secret key. To do that, head over to the Google Developer Console. Here click on the button “New Project.”
Now, enter the new unique project name and click on the button “Create.” For instance, I’ve entered my project name as “Bloggersignal Dev.”
After creating the Project, head over to the “APIs” section under “APIs and auth” in the left sidebar.
Here, find the “Drive API” link under “Google Apps APIs” and click on it.
Now, click on the “Enable API” button. This action enables the Drive API.
After that, you need to configure the Consent Screen. To do that, click on the link “Consent screen.” Here, enter the Product Name of your choice and click on the “Save” button.
Of course, you can also fill all the optional blanks if you want to, it doesn’t matter.
Now, you need to create the client ID. To do that, click on the link “Credentials” in the left sidebar. Once the page has been opened, click on the button “Create new client ID.”
This will open up the “Create Client ID” module. Here, enter the details as follows.
- Select the radio button “Web Application.”
- Now, copy the authorized redirect URL from the UpdraftPlus settings page and paste it in the “Authorized Redirect URIs” field.
Once you are done filling the fields, this is how it looks like. Now click on the button “Create Client ID.”
This action will create the new client ID and client secret. Now, copy both the client ID and the client secret.
Configure UpdraftPlus to Work with Google Drive
Now paste those two in the UpdraftPlus settings page next to “Google Drive Client ID” and “Google Drive Client Secret.”
After that, simply scroll down and click on the “Save Changes” button to save all the changes you just made. This action will show you a notice indicating that you need to authenticate your Google Drive account. Just click on the link.
The above action will open the authorization or consent window. Here click on the button “Accept” to allow UpdraftPlus to upload files to your Google Drive account.
You’ve successfully authorized UpdraftPlus to backup WordPress to Google Drive. From this point forward, UpdraftPlus will automatically backup WordPress to Google Drive as scheduled.
To test the settings, navigate to the “Current Status” tab and click on the button “Backup Now.”
This action may open another screen, just click on the button “Backup Now” again.
That’s it, UpdraftPlus will now backup your site and automatically uploads it to your Google Drive account. Depending on the size of your site, the backup and upload process may take some time.
Once the backup and upload process has been completed, you can view all the current backups in the “Existing Backups” tab.
One thing to keep in mind is that since UpdraftPlus is uploading the backup files to your Google Drive account, it will not store any files locally. i.e, on your server.
So, make sure that you check the backups in your Google Drive account.
That’s all there is to do and it is that easy to configure and use UpdraftPlus to backup WordPress to Google Drive.
Hopefully that helps and do comment below if you face any problems following the above procedure or to share your thoughts and experiences about using UpdraftPlus to backup WordPress to Google Drive.