Backing up your whole WordPress site is a must-do step after the proper installation of WordPress. This is not only important for newbies, but also essential for experts or programmers. In addition, you cannot just make a backup for one time. Instead, this needs to be done in a regular interval to prevent the loss of your valuable work. The backup file is pretty useful after a hacking issue or a website failure. As we have already introduced you how to do a WordPress backup to your local computer. This time, we’d like to tell you how to backup WordPress to Google Drive.
The main reason for you to do so is that only backing up to your local computer is not safe enough. After all, once the hard disk of your PC breaks down, you will lose this important file. In this case, we highly recommend you to store the backup files to the online cloud storage. Google Drive, luckily, is a great cloud storage service offered by Google. It is released since the year of 2012, which gives all the new users 5 GB of free storage. As compared with many other related service providers, this one ensures the highest level of security.
Backup WordPress to Google Drive using the UpdraftPlus Plugin
To integrate your WordPress site with the Google Drive service for the proper backup, you can use the UpdraftPlus plugin. This plugin simplifies the process of backup and restoration. With it, you can start both the manual and the scheduled backup into the cloud service of Google Drive. Once you need, you can restore your site via a single click of the button. In addition, this plugin can backup your website files and database with the separate schedules.
Backup Now or Decide the Backup Schedule
This plugin does not require any time-consuming configuring process. You can click the Settings > UpdraftPlus Backups button directly. From the Current Status tab, you can click the Backup Now button to make a manual backup of your site. Here, you have the freedom to include the database and the website files into the backup.
Or, you can manage the backup schedules. Once the time reaches, the plugin will start the backup automatically. For this, you need to click the Settings tab.
From this page, you can determine the files backup schedule and the database backup schedule from every 4 hours to once a month.
Pick Up the Remote Cloud Storage
In addition to Google Drive, this plugin actually supports many other cloud storage providers, such as Dropbox, WebDAV, Google Cloud and many more. Now, you need to tap on the icon of Google Drive from the following options.
Create the Client ID and Drive API
For the utilization of Google Drive in this plugin, you should enter the Client ID and the Client Secret. To get these two parts, you should click this link that redirects you to the Google API Console. From this page, you can create a new ID and enable the Drive API.
Here, you need to click the Project tab and then click the Create Project button.
From the popup window, you should give this project a name and edit the project ID if you want. After agreeing to the terms and services and enabling the email notification feature, you can click the Create button.
After that, you can be taken to the project dashboard. From it, you will find a list of Google APIs. You just need to scroll down to target the Drive API one and change the status to the value of “on”.
Now, you have already created a project that ensures the access to Google Drive through the exclusive API. So, the next step is to integrate the UpdraftPlus plugin with that project. For this, you should go to the API & Auth section of your project and click the Consent Screen button. From this screen, it seems that you should finish a lot of settings. But actually, you simply need to select the email address and enter the product name as you want.
Next, you should click the Credential button to create the new client ID. From the pop-up window, you should choose the application type as the web application and enter your domain name into the second field.
As for the redirect URL, you can find it from the plugin settings page.
Now, you can get the ID and secret key after clicking the Create Client ID button.
Finish the Rest Settings
After entering the Google Drive ID and secret of the new client, you have already associated this plugin with the Google Drive service. Next, you can enable some additional backup targets that include the plugins, themes, uploads and all the directories stored inside the wp-content folder. Even, you can check the email box to have the backup report sent to your mailbox.
Backup and Restoration
Now, after saving the settings, the backup will be started manually or automatically as you want. All your backup files can be found from the Existing Backups section. Here, you can find your files from the local folder or from the remote storage offered by Google Drive.
If you are looking for the restoration, you simply need to click the Restore button and wait for a while.