Backing Up and Restoring User Data
Find where a user's data really lives, back it up before a repair or replacement, move it to a new computer, and prove the copy works before anything is wiped.
Table of contents
A user will forgive a slow fix. They will not forgive losing three years of files. Before you reinstall, reset, swap a drive or replace a computer, know where the user's data lives and have a copy you have checked.
Steps were checked in November 2026 against Microsoft Support and Microsoft Learn for Windows 11, version 26H2, and Apple Support for macOS 27 (Golden Gate). Your employer's backup system and procedures come first.
What You Will Be Able to Do
- Explain the 3-2-1 rule, and why sync is not the same as backup.
- Find everything a user keeps on a computer, including data outside the usual folders.
- Choose between OneDrive folder backup, File History, Time Machine and a manual copy, and know each one's limits.
- Copy a user's data with a log you can check, and move them to a new computer.
- Restore lost or overwritten files without making things worse.
Sync Is Not Backup
A backup is a separate copy you can go back to. Sync keeps the same files identical in several places. If a user deletes a synced file, or ransomware scrambles it, that change syncs everywhere too. Cloud recycle bins and version history help, but only for a limited time.
CISA, the federal cybersecurity agency, recommends the 3-2-1 rule:
- 3 copies of important files.
- 2 different types of storage, such as a hard drive and the cloud.
- 1 copy kept off-site.
CISA also says to keep offline copies, test restores on a schedule, and be able to roll data back at least seven days. Ransomware often hunts for backups it can reach and deletes them.
| Tool | What it protects | Watch out for |
|---|---|---|
| Company backup system | Servers, shared drives, sometimes whole laptops | Learn who restores and how far back it goes |
| OneDrive folder backup | Desktop, Documents, Pictures and similar folders, synced to OneDrive | It is sync. Check for sync errors |
| File History (Windows) | Copies of files in Desktop, Documents, Pictures and other library folders | Needs its external or network drive connected |
| Windows Backup app | Folders, app list and settings | Personal Microsoft accounts only. Microsoft says work or school accounts won't work |
| Time Machine (Mac) | The whole Mac, to an external drive | Deletes the oldest backups when the drive fills |
| A manual copy | Exactly what you choose | Only as complete as your list |
Apple says Time Machine keeps hourly backups for the past 24 hours, daily backups for the past month, and weekly backups before that. An encrypted backup needs its password to restore. OneDrive will not sync a file over 250 GB, a name with characters such as a colon, or on Windows, a path of 260 characters or more.
Find Where the Data Lives
Ask the user what they cannot lose and where it is. Then check, because people forget. Look at names and sizes, not the contents of personal files.
- Profile folders. Desktop, Documents, Downloads, Pictures, Videos and Music. On Windows they sit in
C:\Users\username. On a Mac they sit in the user's home folder,/Users/username. - Folders outside the profile. A
C:\DataorC:\Scansfolder, a second drive, or a folder a business app saves to. - Email data files. Classic Outlook can keep .pst files, which hold mail that may exist nowhere else, often in Documents, then Outlook Files. An .ost file is a local cache of a server mailbox. It rebuilds itself and does not need copying.
- Browser data. Bookmarks usually sync with the work account. Saved passwords belong in the company's password manager. Never export passwords to a plain file.
- App settings. Signatures, templates and dictionaries. Copy app data only the way the vendor or your knowledge base says, not whole hidden folders such as AppData.
- Connections. Mapped network drives and printers. Run
net usein Command Prompt to list mapped drives, and write them in the ticket.
What usually needs no copy: mail on a Microsoft 365, Exchange or Google server, files fully synced to OneDrive, SharePoint or a shared drive, and apps your employer deploys. Confirm each. A OneDrive icon with a red X means some files never reached the cloud.
Copy work data only to a place your employer approves, such as a company file share or an encrypted drive from IT, never your own USB drive or cloud storage. Delete temporary copies when your policy says.
Before Any Repair, Check the Recovery Key
BitLocker on Windows and FileVault on a Mac encrypt the drive. Some repairs make Windows ask for the BitLocker recovery key at startup, a 48-digit number. Microsoft lists triggers including replacing the motherboard, updating the BIOS or UEFI firmware, clearing the TPM security chip, and moving the drive to another computer. Microsoft Support cannot recover a lost key.
- Before the repair, find the key where your organization stores it. On work devices that is usually Microsoft Entra ID, Active Directory or the device management system. For a personal Microsoft account it is at aka.ms/myrecoverykey.
- Match the key ID. The recovery screen shows an ID, and the first 8 digits tell you which stored key is the right one.
- For planned firmware or hardware work, ask whether your team suspends BitLocker first. Microsoft says that avoids the recovery prompt, and protection resumes after a restart.
- On a Mac, confirm the FileVault recovery key is stored in the MDM, the company's device management system.
Warning: Anyone with a recovery key can read the whole drive. Never put a recovery key in ticket notes, chat or email. Look it up when you need it, use it, and follow your team's process.
Back Up Before the Work
- Write in the ticket what the user said matters and where it lives.
- Check the existing backups: no errors on the OneDrive icon, or a recent last backup in File History (in Control Panel) or Time Machine settings.
- Copy anything that lives only on this computer to an approved location.
- Check the copy, as described below.
- Note in the ticket what you copied, where it went, the file count and size, and when the temporary copy will be deleted.
On Windows, robocopy is the built-in tool for copying large folders, because it retries, can skip files already copied, and writes a log. Create the log folder first with mkdir C:\Temp, then run one command per folder:
robocopy "C:\Users\jlee\Documents" "\\fileserver\migrations\jlee\Documents" /E /R:2 /W:5 /LOG:C:\Temp\jlee-documents.log /TEE
/Ecopies every subfolder, including empty ones./R:2 /W:5retries a failed file twice, 5 seconds apart. Without them, robocopy's defaults are one million retries, 30 seconds apart, so one locked file can stall the job for days./LOG:writes a log, and/TEEshows the same output on the screen.
Robocopy ends with a summary of files copied, skipped and failed. An exit code of 8 or higher means at least one file failed. See it with echo %ERRORLEVEL% in Command Prompt or $LASTEXITCODE in PowerShell.
Warning: Never add
/MIRor/PURGEto a user data copy. They delete files at the destination that are missing from the source. If you swap the source and destination by mistake,/MIRdeletes the user's files.
On a Mac, a manual copy in Finder works for a few folders. For a whole Mac, choose Back Up Now from the Time Machine menu in the menu bar to make a fresh backup before the work.
Check the Copy Before You Trust It
- Compare counts and sizes. On Windows, compare the size and "Contains" count in each folder's Properties. On a Mac, use File, then Get Info.
- Read the robocopy summary. The Failed column should show 0 for files.
- Open a sample. A document, a spreadsheet, a PDF, a photo, and the newest file.
Worked Example: Three Missing Files
The original Documents folder shows 14,212 files and 38.6 GB. The copy shows 14,209 files. The robocopy summary shows 3 files failed, and the log shows each one with "The process cannot access the file because it is being used by another process." All three are in Outlook Files. Outlook was open, so its .pst files were locked.
Ask the user to close Outlook, then run the same command again. Robocopy skips the 14,209 files that already match and copies only the 3. The copy now shows 14,212 files, the Failed column shows 0, and you note both runs in the ticket.
Plan for time, too. At 50 megabytes a second, 38.6 GB is 38,600 MB / 50 = 772 seconds, about 13 minutes. At 10 megabytes a second over weak Wi-Fi, it takes 3,860 seconds, over an hour. Use a cable.
Moving a User to a New Computer
On Windows:
- Back up the old PC, check the copy, and make sure OneDrive shows everything up to date.
- Record what is not a file: mapped drives, printers and needed apps.
- Have the user sign in to the new PC with their work account. If OneDrive folder backup was on, those folders come back through OneDrive.
- Copy the local-only data back into the matching folders.
- Install apps from the approved source, and reconnect drives and printers.
- Have the user open key files, email and printers before you close the ticket.
On a Mac, Migration Assistant in Applications, then Utilities, moves documents, apps, user accounts and settings from another Mac, a Time Machine backup or a startup disk, without deleting anything from the old Mac. Keep both Macs near each other with Wi-Fi on. Apple says to turn off antivirus, firewall and VPN software for the transfer, so get your security team's approval first. If the new Mac already has an account with the same name, you must replace it or rename the incoming one, so check the existing account first. On managed Macs, follow your team's setup process.
Keep the old computer powered off, labeled and untouched for as long as your policy says, because missing files often turn up a week later. Only then does it go to wiping, under your organization's sanitization process.
Restoring Lost or Overwritten Files
| What happened | Look here first | Then |
|---|---|---|
| Deleted from a OneDrive or SharePoint folder | The online recycle bin | IT's backup |
| Saved over by mistake | Version history, File History or Time Machine | IT's backup |
| Deleted from the local disk | Recycle Bin or Trash | File History or Time Machine |
| Deleted from a network drive | IT's server backup | Report it the same day |
| Many files renamed or unreadable at once | Stop. This may be ransomware | Report it to security now |
With File History:
- In File Explorer, open the folder that held the file.
- Right-click the folder and choose Restore previous versions. On Windows 11 you may need Show more options first.
- Pick a version. Choose Restore to and a new location, not Restore. Microsoft warns that Restore replaces the current version and cannot be undone.
With Time Machine:
- Open the folder that held the item in Finder.
- Open Time Machine with Spotlight.
- Use the arrows or the timeline at the right to go back to a backup that has the item.
- Select it and click Restore. It returns to its original location.
To restore a whole Mac, open Migration Assistant on the new or repaired Mac and choose to transfer from the Time Machine backup. macOS Recovery also offers Restore from Time Machine.
Restoring to a new location first means you never overwrite a file the user changed after the backup. Let the user compare and choose.
If you suspect ransomware, restore nothing until security clears the device, or the clean copies can be scrambled too.
Test restores. When you set up or check a backup, restore one file to a temporary folder, open it, and note it in the ticket. The day you need a backup is the worst day to learn it does not work.
Common Mistakes
| Mistake | What it costs |
|---|---|
| Trusting the sync icon without checking for errors | Files that never reached the cloud |
| Forgetting a .pst file or a folder outside the profile | Years of email or records lost |
Adding /MIR to a user data copy |
Files deleted at the destination, or the user's originals |
| Wiping the old computer the day the new one arrives | No way back when a missing file turns up |
| Pasting a recovery key into a ticket | Anyone with ticket access can read the drive |
Check Your Understanding
1. A user says, "I don't need a backup, everything is in OneDrive." Their OneDrive icon shows a red X. What do you tell them?
OneDrive is sync, not a separate backup, and the red X means some files are not syncing, so they may exist only on this computer. Copy those files before any repair.
2. You are about to replace a laptop's motherboard. What do you confirm before you start?
That the BitLocker recovery key is stored where your organization keeps it, such as Entra ID, Active Directory or the device management system, and that its key ID matches this laptop. A new motherboard can trigger the recovery screen.
3. Robocopy finishes with exit code 8 and the summary shows 2 failed files. Can you wipe the old drive?
No. An exit code of 8 or higher means at least one file failed. Find the two files in the log, fix the cause, run the copy again, and check that Failed shows 0.
4. A user overwrote this morning's version of a spreadsheet on their Mac. They want yesterday's copy back without losing today's changes. How do you restore it?
Restore yesterday's version from Time Machine or version history to a different location, or under a different name, so today's file stays put. Then let the user compare the two and decide which to keep.
Key Takeaways
- Sync is not backup. Keep 3 copies on 2 kinds of storage, with 1 off-site, and an offline copy.
- Find all the data first, including .pst files, folders outside the profile and mapped drives.
- Confirm the BitLocker or FileVault recovery key before hardware or firmware work, and never paste it into a ticket.
- Copy with a log, check counts and open a sample, and never use
/MIRon user data. - Restore to a new location first, and keep the old computer untouched until your policy says it can be wiped.