Remote destination
Configure Google Drive for WordPress backups.
Google Drive is a practical destination for site owners who want off-site backups without managing object storage. Use it for small and medium WordPress sites, client sites, content sites and manual restore points.
What you need
- A Google account with enough Drive storage for your backup retention plan.
- Access to Google Cloud Console for the same Google account.
- Admin access to the WordPress site.
- StifLi Backup Tools installed and activated.
- The Google Drive redirect URL shown by StifLi Backup Tools in the destination settings.
- A backup folder name, for example stifli-backups.
1. Create a Google Cloud Project
- Sign in to the Google account that will own the backup connection.
- Open Google Cloud Console.
- Create a new project, for example StifLi Backup Tools - example.com.
- Select the new project from the project selector before continuing.
2. Enable the Google Drive API
- In Google Cloud Console, open APIs & Services > Library.
- Search for Google Drive API.
- Open the Google Drive API result.
- Click Enable.
This allows the OAuth client you create next to request access to Google Drive for backup uploads.
3. Configure the OAuth Consent Screen
- Open APIs & Services > Credentials.
- If Google asks you to configure the consent screen, click Configure Consent Screen.
- Choose External unless the site belongs to a Google Workspace organization and you intentionally want internal-only access.
- Enter an app name, for example StifLi Backup Tools.
- Enter the user support email and developer contact email.
- Complete the required consent screen steps and save.
- If Google keeps the app in testing mode, add the Google account that will authorize Drive as a test user.
For personal or single-site backup use, testing mode is usually enough as long as the authorizing Google account is added as a test user. If the connection must be used broadly by many Google users, publish the app and complete any Google verification Google requires.
4. Create OAuth Client Credentials
- Go back to APIs & Services > Credentials.
- Click Create Credentials.
- Select OAuth client ID.
- Choose Web application as the application type.
- Enter a recognizable name, for example StifLi Backup Tools example.com.
- Leave Authorized JavaScript origins empty unless StifLi Backup Tools explicitly asks for it.
- In WordPress, open StifLi Backup Tools > Remote Destinations > Google Drive.
- Copy the redirect URL shown by the plugin.
- Paste that exact URL into Authorized redirect URIs in Google Cloud Console.
- Click Create.
- Copy the generated Client ID and Client Secret.
5. Connect StifLi Backup Tools to Google Drive
- Return to the Google Drive destination settings in WordPress.
- Paste the Client ID and Client Secret.
- Save the settings.
- Click the authorization or login button in StifLi Backup Tools.
- Sign in with the Google account that should store the backups.
- Review the consent screen and allow access.
- After Google redirects back to WordPress, confirm that the destination shows as connected.
6. Configure Folder, Retention and Test Backup
- Set the Google Drive folder where backup archives should be stored.
- Set the maximum number of remote backups to keep.
- Choose whether scheduled backups should upload to Google Drive automatically.
- Save the destination.
- Run Test connection if available.
- Create a manual backup using Google Drive as the destination.
- Open Google Drive and confirm the backup archive appears in the configured folder.
Recommended Settings
| Setting | Recommended value |
|---|---|
| Folder | Use a clear folder per site, such as /StifLi Backups/example.com. |
| Retention | Keep 7 to 14 remote backups for normal business sites, more for active stores. |
| Schedule | Weekly full backups plus more frequent database backups for changing sites. |
| Verification | Run one manual backup and confirm the archive appears in Google Drive. |
Troubleshooting
| Problem | What to check |
|---|---|
| Redirect URI mismatch | The URL in Google Cloud must exactly match the redirect URL shown by StifLi Backup Tools, including protocol, domain, path and trailing slash if present. |
| Access blocked or app not verified | Add your Google account as a test user or publish/verify the OAuth app if required for your use case. |
| Drive API not enabled | Confirm the Google Drive API is enabled inside the same Google Cloud project that owns the OAuth client. |
| Upload succeeds once but scheduled backups fail | Reconnect the destination, check token expiration, and confirm the WordPress scheduler is running. |
| Backups fill Drive storage | Lower retention, delete old archives, or move backups to a larger Drive/Workspace account. |
Security Notes
Use the narrowest permissions the plugin offers, avoid connecting a personal Drive account with unrelated sensitive files, and periodically remove old backups. Backup archives can contain private site data, so treat the Drive folder as production data.
