Blog

How to Back Up WordPress to Google Drive

Illustration: WordPress files, media and database uploading from a server to a cloud folder on a schedule
In short

How do you back up WordPress to Google Drive?

To back up WordPress to Google Drive automatically, use a backup plugin that connects to Drive, choose a schedule, and set backups to upload to Drive after each run. Check that the plugin asks for the narrow drive.file permission, so it can only see the files it creates. Keep the newest few backups and delete older ones automatically so your Drive does not fill up.

Last updated

In this guide
  1. Why back up WordPress to Google Drive?
  2. What Drive access should a backup plugin ask for?
  3. How do you back up WordPress to Google Drive by hand?
  4. How do you back up WordPress to Google Drive automatically?
  5. How much Google Drive space do you need?
  6. How do you restore a WordPress backup from Google Drive?
  7. Common Google Drive backup problems
  8. Next steps
  9. Sources

To back up WordPress to Google Drive automatically, connect a backup plugin to your Google account, set a schedule, and have each backup upload to Drive when it finishes. Before you connect, check what the plugin asks to see in your Drive: the safe choice is the narrow drive.file permission. Then set the plugin to keep only the newest few backups, so your Drive never fills up.

Why back up WordPress to Google Drive?

Most backup tools save to a folder on your web server by default. That protects you from a bad update or a deleted page, but not from the server itself failing, being hacked or the hosting account being closed. A backup stored on the same server goes down with it.

Google Drive gives you a copy somewhere else, which is the “off-site” part of the 3-2-1 backup rule. It is also an account most people already have, with 15 GB of free storage included in every Google Account, shared between Drive, Gmail and Google Photos.

What Drive access should a backup plugin ask for?

When you connect a plugin to Google Drive, Google shows a consent screen listing what the plugin wants to do. This matters more than most people realize.

Google Drive permissions compared: full Drive access lets a plugin see every file, the drive.file permission only lets it see files it created or files you pick

Permission What the plugin can see Use it?
Full Drive access Every file in your Drive: documents, photos, everything Avoid if you can
drive.file Only files the plugin created, or files you pick with Google’s file picker Yes

Google describes drive.file as access to files “that you open with an app or that the user shares with an app”. A backup plugin does not need more than that. If a plugin asks to see, edit and delete all your Google Drive files, think twice.

How do you back up WordPress to Google Drive by hand?

This works with any site, but it is not automatic.

  1. Make a backup of files and database. Our guide on how to back up WordPress covers the manual and plugin methods.
  2. Download it to your computer.
  3. Upload it to a Drive folder for that site, named with the date.
  4. Delete old copies when you no longer need them.

Developers with SSH access can automate this with a server cron job and a tool such as rclone, which supports Google Drive. For most site owners, a plugin is simpler.

How do you back up WordPress to Google Drive automatically?

With MoveSafe, the WordPress backup plugin we make:

How a scheduled WordPress backup reaches Google Drive: backup runs at your chosen time, uploads with checks, keeps the newest copies and emails you if anything fails

  1. Connect Google Drive. One click sends you to Google to approve access. No Google Cloud setup is needed. MoveSafe uses the drive.file permission, so it cannot see the rest of your Drive.
  2. Pick the folder. Each site gets its own folder automatically, or you can choose any folder with Google’s file picker.
  3. Choose where backups go. Keep them on the server and Drive, or on Drive only. With Drive only, the copy on the server is removed only after the upload is verified, and kept if the upload fails.
  4. Set a schedule. Choose from 8 frequencies, from hourly to monthly, at the exact time you want, such as 3 a.m. when traffic is lowest.
  5. Keep the newest few. Set how many backups to keep. Old ones are deleted automatically, and clean-up only ever deletes backups MoveSafe uploaded itself.
  6. Turn on email alerts. Get an email if a backup or upload fails, sent to up to 5 addresses.

Uploads are resumable and checked with checksums, so a dropped connection does not leave you with a broken copy. If you want an extra layer, encrypt the backup with a password (AES-256) before it leaves the server.

Several sites on one Google account? Each site lists and restores only its own backups. Using another site’s backup means picking it by hand and signing in with the connected Google account first, so one site cannot quietly restore another site’s data.

How much Google Drive space do you need?

Work it out from the size of one backup times the number you keep.

Site Backup size Backups kept Space needed
Small brochure site 300 MB 7 about 2 GB
Blog with a big media library 3 GB 4 about 12 GB
Online store 2 GB 14 about 28 GB

These are worked examples, not averages. Check your own backup size after the first run. If it is larger than expected, leave out the junk: cache folders, other plugins’ old backup archives, logs and post revisions. MoveSafe has a “leave out junk” switch that does this for you.

If your backups will not fit in 15 GB alongside your email and photos, either keep fewer copies, back up the database more often than the whole site, or use a Google account with more storage.

How do you restore a WordPress backup from Google Drive?

  1. Bring the backup back to the server. In MoveSafe, copy it back from Drive on the Backups screen. By hand, download it from Drive and upload it to the server.
  2. Take a fresh backup of the site as it is now, so you can undo the restore.
  3. Restore only what you need, such as one plugin folder or the database.

Our guide on how to restore WordPress from a backup safely covers what to check first and how to undo a restore.

Common Google Drive backup problems

Problem Likely cause Fix
Upload fails on large sites The host stops long-running tasks Use a plugin with resumable uploads, or leave out junk to shrink the backup
Drive storage full Too many old backups kept Lower the number kept, or back up the database more often than files
Backups stopped without warning Scheduled tasks only run when someone visits the site Turn on email alerts for failures, and check the schedule ran
Uploads stopped after a Google account change The plugin’s access was removed in your Google account settings Reconnect Google Drive in the plugin’s settings

Next steps

Connect Drive, schedule your first backup, and check the next morning that it arrived. Then restore it once on a test copy, so you know it works before you need it. If you would rather have backups handled for you, our website support and care plans include daily off-site backups.

Sources

FAQ

Common questions

Yes. You can download a backup and upload it to Drive yourself at no cost, and several backup plugins can upload to Drive. Your Google Account includes 15 GB of free storage, shared between Drive, Gmail and Google Photos, so check how much is left before you schedule backups.

It is safer when the plugin asks for the drive.file permission. That scope only lets the app work with files it created or files you pick, not the rest of your Drive. Avoid plugins that ask to see, edit and delete all your Drive files.

Multiply the size of one backup by the number you keep. A site with a 2 GB backup that keeps the newest 7 backups needs about 14 GB. Leaving out caches and old backup archives makes each backup smaller.

You can download the backup from Drive and restore it with the same tool that made it. MoveSafe can copy a backup back from Drive and restore it from the Backups screen.

Keeping a copy on Drive protects you if the server fails. Keeping one on the server too makes restores faster. Many people keep both, or use Drive only when server disk space is tight.

Make your next restore one you can undo

MoveSafe checks every backup before it replaces anything, and keeps a restore point so you can roll back in one click.

Chat on WhatsApp