Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Want it done for you?

Let the Duplicator experts migrate your WordPress site for you — quick, safe, and hassle-free.

Get Migration Help

Storing Your Backup to OneDrive


Would you like to keep a copy of your WordPress backups safe from a server crash, a hack, or a hosting problem? With Duplicator Pro, our backup and migration plugin, every backup can upload straight to your Microsoft OneDrive account, so you’ll always have one ready to restore. In this tutorial, we’ll show you how to store your backup on OneDrive, from connecting your account to restoring your site.

Requirements: In order to use OneDrive storage, you’ll need a Basic license level or higher. On WordPress Multisite, you’ll need a Pro license level or higher.

Connect OneDrive Account

1. To get started, open Duplicator Pro » Storage in your WordPress dashboard. You’ll see the Default local storage already listed. It saves your backups on your server.

2. Next, click Add New to create a new storage location:

Storage dashboard with an Add New button and two storage options: Default Local and Duplicator Cloud, each with actions Connect and Explore plans.

3. Then, enter a Name for the new storage. Next to Type, click Select and choose OneDrive:

Storage type picker showing multiple providers; Local is selected (orange border), with Google Drive, Dropbox, OneDrive, Amazon S3, S3 Compatible, Google Cloud, Dream Objects, Digital Ocean, Vultr, Cloudflare R2, Wasabi, Backblaze B2, FTP, and SFTP available.

4. If you use a OneDrive business account, turn on Are you using a business account? before you connect. By default, Duplicator Pro only asks for read and write access to its own app folder. With this option on, it asks for read and write access to all folders, which business accounts need:

Form for creating new storage: fields Name and Notes, Type set to OneDrive, followed by an authorization section with a business account toggle and a 'Connect to OneDrive' button.

Note: OneDrive business accounts may need consent from your Microsoft 365 administrator before Duplicator Pro can connect. If the authorization below fails or gets blocked, check with your administrator.

5. After that, click Connect to OneDrive:

UI form to create a storage item with Name and Notes fields, OneDrive as the type, and a 'Connect to OneDrive' button in the Authorization area with a business account toggle above it.

6. The Authorization section now shows 3 steps. For Step 1, click Authorize OneDrive. Microsoft opens in a new tab. If it doesn’t, allow popups for your site from your browser’s address bar:

UI for configuring OneDrive storage: name/notes fields, type set to OneDrive, and a multi-step authorization (Authorize OneDrive, paste code, Finalize Setup).

7. In the new tab, sign in to your Microsoft account. Microsoft then lists the access Duplicator Pro needs: it can read your profile and manage the files in its own app folder. To grant it, click Accept:

Dialog box from Microsoft asking to let the app access your info (unverified); options: Deny or Accept.

8. Next, Duplicator shows a unique token for your Microsoft account. To copy it, click Copy:

UI showing a token copy step: an orange Copy button centered, a blurred token input above, and a note about returning to the plugin after login with a Microsoft account.

9. Now, go back to your WordPress dashboard. For Step 2, paste the token into the input field:

UI form: New Storage setup with Name and Notes fields, OneDrive storage type, followed by an Authorization section showing Step 1 to Authorize OneDrive and Step 3 Finalize Setup with a blue checkbox button labeled 'Finalize Setup'

10. For Step 3, click Finalize Setup. Duplicator Pro saves the storage and shows your connected OneDrive account:

OneDrive authorization card showing an account named (redacted) has been granted access; option to Cancel Authorization is present

11. Next, check the Storage Folder. Duplicator Pro stores your backups inside //OneDrive/Apps/Duplicator Pro/, in a folder named after your site. If more than one site backs up to the same OneDrive account, give each one its own folder name, so the backups stay separate.

12. Then, check the Max Backups setting. It sets how many backups Duplicator Pro keeps in your OneDrive storage folder. When there are more, Duplicator deletes the oldest one. To keep every backup, set it to 0:

Settings panel showing a storage folder path and a Max Backups field with the value 10 selected; note explains backups are deleted when the limit is exceeded.

Note: A free OneDrive account only has 5GB of storage, so we recommend keeping the Max Backups value low. That way, Duplicator deletes old backups and your storage doesn’t fill up.

13. Before you create a backup, it’s a good idea to test the connection. To do this, scroll to the bottom of the page and click Test Storage. Duplicator creates and deletes a small file on OneDrive to make sure the storage works. If you changed any settings after connecting, click Save Provider:

Validation section showing a 'Test Storage' button with a cloud icon; helper text reads: 'Test creating and deleting a small file on storage'.

Once connected, Duplicator Pro renews the OneDrive connection automatically. If Microsoft revokes access (for example, after a password change, or if you remove Duplicator Pro’s access from your Microsoft account), backups to this storage fail until you reconnect it. To do this, edit the storage and repeat the authorization steps above.

If a backup doesn’t reach OneDrive or the connection stops working, check out our guide to fixing OneDrive storage issues.

Create and Store a Backup on OneDrive

Now that OneDrive is set up as a cloud storage location, it’s time to store your first backup there. To do this, go to Duplicator Pro » Backups and click Add New:

Backups dashboard with an orange Add New button, a single backup entry in the list, and a dark vertical menu on the right side.

Duplicator names the backup with the Backup Name Format, which uses dynamic tags like the date and your site title. To make the backup easier to find later, add your own text or pick different tags from Dynamic Tags:

General settings screen showing Backup Name Format with Dynamic Tags and Template set to Unassigned; Storage section below.

Next, in the Storage section, check your OneDrive storage:

Storage options list with Default, Duplicator Cloud, Google Drive, and OneDrive; OneDrive is selected (checkbox checked) and highlighted.

In most cases, a full backup of your site’s files and database is the right choice. To create one, keep the Full Site preset under Backup Filters, leave the Installer settings as they are, and click Next.

After you configure the backup, Duplicator scans your website. Review the scan results for any issues, then click Create Backup to continue:

Backup setup page showing scan complete and a detailed status panel (Hosting, System, Archive Encryption) with a highlighted Create Backup button at the bottom.

When Duplicator finishes building the backup on your server, it uploads it to your OneDrive storage folder.

Restore Your Website Using Backups Stored on OneDrive

Duplicator Pro gives you 2 ways to restore a backup stored on OneDrive: from the Backups page, or by importing the backup file. Either one rolls your website back to an earlier version or recovers it after a crash.

Use the Download Option to Restore Your Website

To restore your website from a backup in your OneDrive account, follow these steps:

  1. First, go to Duplicator Pro » Backups.
  2. Next, click the Download button for the backup you need. If the backup isn’t in local storage, the Download From Remote Storage window opens. There, select your OneDrive storage and click Download.
  3. After the download finishes, click the Restore button.
Modal: Download From Remote Storage with OneDrive selected and a highlighted Download button

Use a Backup Stored on OneDrive to Restore Your Website

To start, open your OneDrive account and find the folder with your Duplicator backups. It’s inside //OneDrive/Apps/Duplicator Pro/ and matches the Storage Folder you set when you connected OneDrive. Then, select the archive file and download it:

UI file list showing a highlighted ZIP archive row (119 MB) and a nearby installer.php file in the docs_review folder

Next, open your WordPress dashboard and go to Duplicator Pro » Import Backups. Instead of uploading the file with a file manager or a File Transfer Protocol (FTP) client, you’ll import the backup directly:

Screenshot of Import Backups page with a drag-and-drop area labeled 'Drag & Drop Backup File Here' and a 'Select File...' button, plus a right-side Duplicator Pro menu panel.

Then, drag and drop the archive file into the upload box, or click Select File… to choose it. Once it uploads, the backup appears in the list below. If everything looks right, click Continue:

Continue with the uploaded backup

You’ll then see a confirmation page with an overview of your current site. To replace it with the uploaded archive, click Launch Installer:

Step 2 of 2: Confirmation screen for Disaster Recovery with Launch Installer highlighted at bottom right.

The Duplicator installer opens and walks you through the restore. First, make sure Restore single site is selected as the Install Type:

Wizard: Step 1 of 2 Deploy Uploaded Package, showing Restore Single Site selected for a single-site backup restore

The installer checks your setup automatically and shows a warning if anything needs your attention. To continue, check I have read and accept all terms & notices and click Next:

Software installation wizard screen with a highlighted Next button at bottom-right and a Cancel button nearby.

As a final step, confirm that you want to restore the backup. In the Install Confirmation window, click OK:

Install Confirmation dialog showing database overwrite warning with 17 tables to be modified and an OK/Cancel option.

Duplicator then replaces your current site with the saved backup. When it’s done, you’ll see Import Finished with the install results and an Admin Login button:

Step 2 of 2: Import Finished screen with an Admin Login button highlighted, an auto-delete installer files checkbox, a warning area, and status tables showing installation progress.

Finally, click Admin Login to sign back in to your restored website.

That’s it! You can now store your backups on OneDrive and restore your site from them whenever you need to.

Would you like to compare other cloud storage options? Check out our guide to backing up to the cloud.


Was this article helpful?


Related Articles

Don't Let Another Day Pass Unprotected

Every hour without proper WordPress backups puts your site at risk • Every delayed WordPress migration costs you performance and growth

Get Duplicator Now
Duplicator Plugin

Wait! Don't miss your
exclusive deal!

As a customer, you get 60% OFF

Try Duplicator free on your site — see why 1.5M+ WordPress pros trust us. But don't wait — this exclusive 60% discount is only available for a limited time.

or
Get 60% Off Duplicator Pro Now →