# Microsoft OneDrive Business

## About Microsoft OneDrive

OneDrive is the cloud storage service that Microsoft offers to store all your files securely in one place, which you can then access from virtually anywhere.

## Set up Microsoft OneDrive Business

To set up Microsoft OneDrive Business as a storage for your backups, follow the steps below.

### Create a new OneDrive Business storage

* Open the [Cloudback Dashboard](https://app.cloudback.it/)
* Navigate to the `Storages` page by clicking on the `Storages` link in the left-side navigation pane
* Click on the `Add a new storage` button:

![Add new storage](https://2781059148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQEI7SjBF2CddqNXZpCoE%2Fuploads%2Fgit-blob-48c773c5876576956efc547df9c59cfec230772b%2Fcustomer-managed-storages.png?alt=media)

* Type a storage name in the `Storage name` field. Use a name that will help you identify this storage in the future.
* Select `OneDrive Business` from a Storage Provider dropdown:

![OneDrive Business storage settings](https://2781059148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQEI7SjBF2CddqNXZpCoE%2Fuploads%2Fgit-blob-9cf2a21a06ead1627f7624bc39f096046f738a2d%2Fcreate-new-storage-microsoft-onedrive-business.png?alt=media)

### Set up storage settings

Choose the settings for the storage:

* **Deduplication type** - enable or disable data deduplication. For more details, please refer to the [Deduplication](https://docs.cloudback.it/managing-backups/data-deduplication) documentation
* **Archive type** - enable or disable archive password protection. For more details, please refer to the [Password-Protected Archives](https://docs.cloudback.it/security-and-compliance/password-protected-archives) documentation
* **Archive name pattern** - configure the archive name pattern, which is used to generate the name of the backup archive. For more details, please refer to the [Archive Name Pattern](https://docs.cloudback.it/managing-backups/archive-name-pattern) documentation

### Check your OneDrive Business account

Ensure you have access to the OneDrive Business account you want to use for storing backups. If you don't have an account, you can create one on the [Microsoft OneDrive website](https://www.microsoft.com/en-us/microsoft-365/onedrive/onedrive-for-business).

### Grant permissions to Cloudback application

On the `Step 2`, click on the `Grant permissions` button to grant the necessary permissions to the Cloudback application. This will allow Cloudback to access your OneDrive Business account and upload backups to it.

### Provide the OneDrive Business folder name

After granting the necessary permissions, you need to provide the folder name in the `Step 3` by clicking on the `Open file picker` button. Folder name is required so Cloudback can upload backups to the correct folder in your OneDrive Business account.

### Save storage

Click on `Save` button to save the new storage. You can also use a `Test` button to check if the storage is configured correctly. After saving the storage, you can use it for storing backups of your repositories.

All storage settings can be changed later in the `Storages` page. To edit the storage settings, click on the `Edit` button next to the storage you want to edit.

## Change the storage for a repository

You can change the storage for a particular repository in the [Repository Details](https://docs.cloudback.it/dashboard/repository-details) page. Also, you can assign it to multiple repositories through the [Bulk Operations](https://docs.cloudback.it/managing-backups/bulk-operations).

## Learn More

* [Customer Managed Storages](https://docs.cloudback.it/storage-configuration/customer-managed-storages)
* [Dashboard Overview](https://docs.cloudback.it/dashboard/dashboard-overview)
* [Repository Details](https://docs.cloudback.it/dashboard/repository-details)
* [Bulk Operations](https://docs.cloudback.it/managing-backups/bulk-operations)
* [Replicating Backups](https://docs.cloudback.it/storage-configuration/replicating-backups)
