Back up Microsoft OneDrive files
Who is this article for?
Incydr Professional, Enterprise, Horizon, and Gov F2, no.
Incydr Basic, Advanced, and Gov F1, yes.
This article shows you how to back up Microsoft OneDrive folders. If you include your OneDrive folder in your backup selection, make your files available offline so they can be backed up.
Information about products from other manufacturers is intended as a resource to help you get the most out of Code42 products. However, our Technical Support Engineers cannot provide direct assistance for these products. For assistance with products not developed by Code42, contact the product's manufacturer.
Code42 backs up only local files. For the Code42 agent to back up a file stored in a cloud service, you must also store a local copy on your device.
- If you have online-only files, they are represented by file stubs in the OneDrive folder. The Code42 agent does not back up these file stubs.
If you are an administrator looking to add cloud service data sources as part of your insider risk detection strategy, see Cloud storage data connections overview.
OneDrive online-only files
In Windows 8.1, OneDrive introduced online-only files to conserve local hard drive space. Online-only files are designed to take up less space on your hard drive by storing your file's contents in Microsoft's cloud. Although they have the appearance of ordinary files, smart files are just placeholders that store metadata (like size and create date) and thumbnail information about the actual file. The actual file isn't downloaded to your computer until you open it.
Once a file is downloaded to your computer, it becomes available "offline," meaning it is now stored on your computer and you don't need an Internet connection to access it. The Code42 agent can back up offline files in OneDrive just like any other personal file on your computer.
If you choose to back up your OneDrive folder with the Code42 agent by making it available offline, OneDrive still syncs the most recent version of the file across your devices. The Code42 agent will back up your files to all of your destinations, including CrashPlan Central.
Step 1: Make your OneDrive folder available offline
Follow Microsoft's steps for making the contents of your OneDrive folder available offline.
Step 2: Ensure that your OneDrive folder is selected for backup
OneDrive creates a folder for your files that is located within the user folder on your computer. The Code42 agent backs up your user folder by default. If you have altered your file selection, verify that the OneDrive folder on your computer is selected for backup.
- Go to Manage Files.
- Navigate to the OneDrive folder:
Microsoft rebranded their sync and sharing service from SkyDrive to OneDrive via a patch to Windows 8.1 in April of 2014. If you previously used SkyDrive, all references to SkyDrive were updated to OneDrive with the exception of the folder where OneDrive files are actually stored (by default, C:\Users\<YourUsername>\SkyDrive). While it may appear as a folder labeled OneDrive, your files are actually stored in the SkyDrive folder and hard linked to a folder named OneDrive. As long as the SkyDrive folder remains in your file selection, the Code42 agent will continue to back up your OneDrive files.
C:\Users\<Your user name>\OneDrive
/Users/<Your user name>/OneDrive
- Select the OneDrive folder.
- Click Save.
The Code42 agent begins a file verification scan and then backs up the new files.
Backup never completes
If you have installed the Code42 agent per user, when you select the OneDrive folder for backup, you may find that the backup complete percentage never displays 100%. An error similar to the following appears in in the backup_files.log file:
I 10/15/18 01:47PM 61 - Unable to backup 1 file (next attempt within 15 minutes) W 10/15/18 01:47PM 61 - C:\Users\qa\OneDrive\.849C9593-D756-4E56-8D6E-42412F2A707B
This file cannot be backed up because it represents the lock OneDrive places on the OneDrive folder. To allow backup to complete, exclude the file from backups.