PluginsAppsPricingConsultingAboutBlog (opens andrewbaker.ninja in a new tab)Help Get in touch
👁27views

← CloudScale Plugin Help/CloudScale Backup & Restore, Free WordPress Backup Plugin with One-Click Restore & Cloud Sync

Microsoft OneDrive

CloudScale Backup & Restore, Free WordPress Backup Plugin with One-Click Restore & Cloud Sync, Microsoft OneDrive screenshot
On a phone
CloudScale Backup & Restore, Free WordPress Backup Plugin with One-Click Restore & Cloud Sync, Microsoft OneDrive screenshot, as it appears on a mobile screen
The same panel at 390px, showing how it reflows. Cropped to the first screens.

The OneDrive Backup card uploads backup zips to Microsoft OneDrive (personal or OneDrive for Business) after every local backup. The plugin talks to Microsoft Graph directly from PHP over OAuth 2.0, nothing has to be installed on the server.

Azure App Client ID, the Application (client) ID of the app you register in Microsoft Entra.

Azure App Client Secret, a client secret created under Certificates & secrets in that app registration. Use the secret’s Value, not its Secret ID.

Tenant ID, your Directory (tenant) ID. Leave blank for personal OneDrive accounts.

Destination folder, path inside OneDrive where backups are uploaded. Trailing slash required (e.g. cloudscale-backups/). Leave blank for the OneDrive root.

Buttons on this card:

  • Save, stores the Azure app credentials, Tenant ID and destination folder.
  • Connect to OneDrive, sends you to Microsoft to authorise this site; you return here when it is done. Once connected the button becomes Disconnect.
  • Test Connection, lists the destination folder to prove the stored authorisation works. A failure shows the provider’s own error, for example an expired or revoked token.
  • Diagnose, lists the checks to work through when the connection fails.
  • Copy Last Backup to OneDrive, immediately uploads the most recent local backup zip, outside of any schedule, without creating a new backup.

Before Copy Last Backup to OneDrive starts, the plugin checks how much free OneDrive space is available:

  • If OneDrive has enough space, the sync starts immediately.
  • If OneDrive is running low, an inline warning appears with Delete oldest and Sync anyway options.

When connected, the card shows the destination folder, number of backups in OneDrive, and time of last sync.


OneDrive Setup Guide

Step 1, Register an app in Microsoft Entra

In the Entra admin center go to App registrations → New registration. Pick the account type that matches yours (your organisation only for OneDrive for Business, or include personal Microsoft accounts).

Under Authentication add a Web platform with this redirect URI, with your own site’s address in front:

https://your-site.example/wp-admin/admin.php?page=cloudscale-backup&csbr_oauth=onedrive

The card’s Explain and Diagnose dialogs show the exact URI for your site.

Under API permissions add the Microsoft Graph delegated permissions Files.ReadWrite and offline_access.

Under Certificates & secrets create a client secret and copy its Value. It is shown only once.

Step 2, Save and connect

Enter the Application (client) ID, the secret value and the Directory (tenant) ID (leave Tenant ID blank for personal accounts). Set a destination folder (e.g. cloudscale-backups/), click Save, then Connect to OneDrive and sign in.

Step 3, Include it in cloud backups

Click Test Connection. Then tick OneDrive Backup under Include in cloud backup in Cloud Backup Settings and click that card’s Save. Uploads, including Copy Last Backup to OneDrive, are skipped until it is ticked and saved. A skipped upload says so: tick the provider under “Include in cloud backup” in Cloud Backup Settings and click Save, and check Test Connection passes.

Connection failing? Check that the secret is the secret value from Entra (not its ID), that the redirect URI matches exactly, and that both delegated permissions are present. If the token has expired or the secret was rotated, click Disconnect, then Connect to OneDrive to authorise again.


Running out of OneDrive space

Microsoft 365 personal plans include 1 to 5 TB. Free Microsoft accounts include 5 GB. The plugin detects an OneDrive quota problem in two places:

  • Before a manual backup, the cloud space pre-check warns you and offers a Free space on OneDrive button.
  • Before a Copy Last Backup to Cloud sync, an inline warning appears on the card with Delete oldest and Sync anyway options.

The Delete oldest / Free space action removes the oldest non-golden backup from OneDrive one file at a time until the required space (plus a 15% buffer) is available. Golden images are never deleted automatically.

← Back to all sections