Send WordPress Backups to Google Drive with BackupBuddy
BackupBuddy includes Google Drive as a Remote Destination option for your WordPress backup storage. In this post, we cover how to set up and use Google Drive with our BackupBuddy, our WordPress backup plugin .
Easily Send Your WordPress Backups to Google Drive with BackupBuddy
1. Visit the BackupBuddy > Remote Destinations page from your WordPress dashboard. Click the “+ Add New” tab and select the Google Drive icon from the list of available options.
2. On the next screen, you’ll see a summary of instructions for setting up Google Drive as a new Remote Destination. Click Open Google API Console in a new window next to step 1.
3. The Google Drive API Console will open in a new window. Click "Create Project".
4. Name your new project something like “BackupBuddy” & then click the "Create" button. Wait for the next screen to display.
5. Once the project is created, click the back arrow in the upper left corner:
6. The next screen should look similar to the following:
7. In the upper left corner click the "Navigation menu" (three horizontal lines), expand "APIs & Services" then click "Dashboard"
8. Under the Google Apps APIs , click "Google Drive API". (Note: if you've already enabled the "Google Drive API" before for this Google account, you may get presented with a different screen. In that case, just look for the text "Google Drive API" and click on that text and proceed to the step to "Create Credentials".)
9. Click "Enable".
10. You will be prompted to create new credentials, select "Create Credentials".
11. On this page where it states "Add credentials to your project", go to "Which API are you using?" and look for the dropdown menu. Select Google Drive API (this may already be selected) in the first dropdown menu ("Which API are you using?") and select Other non-UI in the second ("Where will you be calling the API from?"). Under "What data will you be accessing?", select Application data. After selecting that option a new option will appear, "Are you planning to use this API with App Engine or Compute Engine?". For that option select "No, I'm not using them". Then click on the button labeled "What credentials do I need?".
12. "Add credentials to your project". Under "Create a service account", for "Service account name", you could place something like "BackupBuddy Backups". For the "Role" option, find "Project", when it's highlighted, select "Owner".
Then click "Continue". It should prompt you with the option to save this account's private key in JSON format. It will be the only copy of the key, so store it securely. This is for your records only and should not be needed at any later time for BackupBuddy.
13. On the next screen, click on "OAuth consent screen".
14. Make sure that under "Support email" that your email address is selected. For "Application name" you can enter something like "BackupBuddy" then click "Save". (All of the other options are optional and not required.) (Note: If it doesn't allow you to click the "Save" button, it's possible that you may need to change the "Application name". As that "Application name" may already be used.)
15. After clicking "Save" it should take you back to the previous screen. Click on "Create credentials"
16. Then find "OAuth client ID" and click that.
17. On the next screen, select "Other" and then when the new box under "Name" appears, enter something like "BackupBuddy Client". Then click "Create".
18. A new smaller window should appear with two fields. "Here is your client ID" and "Here is your client secret". Copy the "Client ID" and "Client Secret" keys. for use with BackupBuddy. (Please be careful copying them. In some browsers the browser may try to add a space before and/or after the key. So please make sure there are no spaces before or after the key. Once copied, click "OK".
19. Navigate back to your BackupBuddy screen. Paste these keys into the Client ID and Client Screen fields and then click the Continue button.
20. Click the Click here & click “Accept” to authorize BackupBuddy access to your Google Drive .
21. On the next screen, click the Accept button .
22. Copy the entire code out of the field.
23. Return to the BackupBuddy screen and paste the code into the Auth Code field BackupBuddy page and click the Continue Button .
24. You’ll now see your Google Drive Settings. You can update the Destination name, select the storage folder and select the number of backups to store.
25. Click the + Add Destination button.
26. That’s it! You’ll now see Google Drive listed in its own tab on the Remote Destinations page.
Using Google Drive with Your Automated WordPress Backup Schedules
Once you get Google Drive added as a Remote Destination, you’ll need to add or edit your backup schedules to include Google Drive as the Remote Destination for the backup.
Visit BackupBuddy > Schedules to edit or add a new schedule. In the Remote backup destination section, add Google Drive .
Google Drive + BackupBuddy Stash as Backup Remote Destinations
While Google Drive is a great option for storage of your WordPress backup files, we still recommend BackupBuddy Stash as your primary storage location.
It’s not a bad idea to use both Google Drive and BackupBuddy Stash so you can take advantage of BackupBuddy Stash features and integrations. As a BackupBuddy customer, you get 1GB of free BackupBuddy Stash storage space. BackupBuddy Stash integrates with iThemes Sync so you can easily manage files stored in your remote destination along with the rest of your WordPress updates.