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.
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:

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

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:

5. After that, click Connect to OneDrive:

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:

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:

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

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

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

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:

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:

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:

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:

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

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:

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:
- First, go to Duplicator Pro » Backups.

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:

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:

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:

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

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

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:

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

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:

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.