Skip to main content

Who is this article for?

Incydr Professional, Enterprise, Horizon, and Gov F2
Incydr Basic, Advanced, and Gov F1

Find your product plan in the Code42 console on the Account menu.

Instructor, no.

Incydr Professional, Enterprise, Horizon, and Gov F2, no.

Incydr Basic, Advanced, and Gov F1, yes.

Code42 Support

Prevent unwanted OneDrive file downloads


Under certain circumstances, backups on Windows 10 devices inadvertently trigger the download of online-only files that are managed by OneDrive Files On-Demand. Normally, the online-only files reside in OneDrive's cloud and not on your device. But if the OneDrive folder is included in the Code42 app backup selection, online-only files are automatically downloaded when backup runs. This article describes how to resolve the problem.


Windows 10 devices using OneDriveFiles On-Demand that meet the following conditions:

  • OneDrive build is 17.3.7064.1005 or later.
  • OneDrive folder is in the Code42 app backup selection.
  • OneDrive Files On-Demand is enabled.
  • OneDrive folder contains online-only files.
Cloud services other than OneDrive
If you use a different cloud service than OneDrive, but experience the same file download problem when the Code42 app runs backup, you can resolve the issue by followings steps in the alternative solutions below. 

Recommended solution

Upgrade to the latest version of the Code42 app. 

Alternative solutions

Choose the solution that's right for you:

Disable OneDrive Files On-Demand

  1. Make sure you’re signed in to OneDrive on your device.

  2. Select the OneDrive cloud icon in the Windows taskbar notification area.

  3. In the activity center, select More > Settings.

  4. On the Settings tab, unselect the Save space and download files as you use them box.

Remove the OneDrive folder from backup

Removed OneDrive files are deleted from backup
When you remove your OneDrive folder from your backup selection, the files in that folder are deleted from your backup archive. They cannot be restored, and there is no way to recover them.

Code42 app users

  1. Open the Code42 app.
  2. Click Manage Files
  3. Navigate to the OneDrive folder on Windows: C:\Users\<Your user name>\OneDrive
  4. Deselect the check box next to the OneDrive folder.
  5. Click Save.
    The Delete Files from Backup warning displays.
  6. Select I understand to confirm you want to delete deselected files from your backup.
  7. If applicable, select Delete.
    After changing the file selection, the Code42 app synchronizes the files selected for backup with the files already backed up to that destination.

Code42 administrators

Use substitution variables or regular expressions to exclude Code42 app users' OneDrive folder from backup. For instructions about how to exclude a folder, see

External resources

Microsoft: Learn about OneDrive Files On-Demand

  • Was this article helpful?