How to find files that are in a folder but not its backup
30 November 2026
To see which files in a folder aren't in its backup, compare the two with a tool that lists differences without copying anything. On Windows, robocopy with /L lists every file it would copy and changes nothing; on a Mac, diff -rq in Terminal lists files that are only in one folder or that differ between them.
Both match files by name and folder. If you've renamed or reorganised things since the backup, files will look missing when they aren't. A comparison by hash, a fingerprint of each file's contents, gets round that.
1. Robocopy's list-only mode (Windows)
Good for: a quick check by name, size and date.
Robocopy comes with Windows. Open Command Prompt or PowerShell and run this, with your own folder first and the backup second:
robocopy "C:\Users\Sam\Documents" "E:\Backup\Documents" /L /E /FFT /NJH /NJS /NP /NS /FP
/L is what makes it safe: Robocopy lists files and doesn't copy, delete or change anything. /E includes subfolders. /FFT allows for drives that store times to the nearest two seconds, such as FAT32 USB drives, so their files aren't all flagged as changed. The rest cut the output to one line per file, with its full path. Microsoft's Robocopy reference explains every option.
Reading the list:
New Fileis in your folder but not the backup, andNew Diris a whole folder that isn't there.*EXTRA Fileand*EXTRA Dirare only in the backup.Newer,OlderandChangedare in both, but the date or size differs.
Files with the same name, size and date aren't listed. To save the list, add /UNILOG:"C:\Users\Sam\compare.txt" to the end.
Limits: Robocopy doesn't open files, so a damaged copy with the right size and date looks fine. A file renamed or moved since the backup appears twice: as New File in your folder, and as an extra file or folder in the backup. And never add /MIR or /PURGE while checking: those delete files from the destination.
2. A PowerShell hash check (Windows)
Good for: backups that have been renamed or reorganised.
This works out a SHA-256 hash for every file in both folders, then lists the files in your folder whose contents aren't anywhere in the backup, whatever they're called there. Change the two paths, then paste it into PowerShell:
$inBackup = @{}
Get-ChildItem -LiteralPath 'E:\Backup\Documents' -File -Recurse | Get-FileHash |
ForEach-Object { $inBackup[$_.Hash] = $true }
Get-ChildItem -LiteralPath 'C:\Users\Sam\Documents' -File -Recurse | Get-FileHash |
Where-Object { -not $inBackup.ContainsKey($_.Hash) } |
Select-Object -ExpandProperty Path
It only reads files. A file you've edited since the backup is listed, because its contents have changed. It reads every byte of both folders, so a large photo or video folder takes a while.
You'll often see Compare-Object suggested for this. It pairs files off one for one, so when we tried it on a folder holding two identical copies of a file, with one copy in the backup, it reported one of them as missing.
3. WinMerge (Windows)
Good for: seeing both folders side by side.
WinMerge is a free, open-source comparison app for Windows. Open both folders with subfolders included and it shows the two trees side by side, marking files and folders that exist on only one side and files that differ. Like Robocopy, it matches files by name and folder.
4. rsync's dry run (Mac)
Good for: seeing what a backup would need to catch up.
In Terminal, with your folder first and the backup second:
rsync -avn ~/Documents/ /Volumes/Backup/Documents/
-n makes it a dry run: nothing is copied. With -v, rsync lists every file it would copy, which means files missing from the backup or different in size or date. Lines ending in / are folders. Keep the slash after each folder name: without the first one, rsync compares against a Documents folder inside the backup folder. If every file is listed, the backup drive may store dates differently; adding --size-only compares sizes alone.
It doesn't list files that are only in the backup. Recent versions of macOS run openrsync when you type rsync, and it accepts these options; its manual page lists them.
5. diff (Mac)
Good for: a thorough check in both directions.
diff -rq -x .DS_Store ~/Documents /Volumes/Backup/Documents
-r goes into subfolders, -q says which files differ rather than how, and -x .DS_Store skips the hidden files Finder keeps in folders. Each "Only in" line names a file or folder that's in one place but not the other; a missing folder is named once, not file by file. Each "Files ... differ" line names a file that's in both but whose contents aren't the same. diff reads every file that's in both places, so it's thorough but slow on large folders, and it matches by name and folder.
When a tool is quicker
Checks by name are thrown by renamed or moved files, and the hash check needs a script and only looks one way. Compare Folders compares a folder with its backup in your browser, by name and by contents, with nothing to install.
Choose your folder, then the backup. Files are matched by where they are, then by their contents, so a file renamed or moved since the backup shows as moved or renamed, with where it is in the backup, rather than as missing. You see what's missing from the backup, what's changed since, what's only in the backup and what's the same. By default, dates up to 2 seconds or exactly an hour apart count as the same, allowing for FAT32 drives and the clocks changing; you can turn either off. A thorough comparison reads every file in both folders, which also finds a damaged copy. Download the report as a spreadsheet.
In Chrome or Edge on a computer, you can then copy what's missing into the backup, in the same folders. Each copy is checked against the original, and nothing in the backup is replaced or deleted: a file that's newer in your folder can be saved beside the backup's version with a number, or left alone. Firefox and Safari compare and give you the report, but can't copy.
It runs in your browser, and your files never leave your computer. Comparing is free for any folders; the free version copies up to 25 files at a time, and Pro is £15 once and copies any number. You can try it with a sample folder first. See also how to compare two folders, and, if the backup is full of spare copies, how to find and remove duplicate files.
Quick answers
Does robocopy /L change anything? No. /L only lists. Don't add /MIR or /PURGE while checking, because they delete files from the destination.
Why does a file show as missing when it's in the backup? It's probably been renamed or moved since the backup, and Robocopy, WinMerge, rsync and diff match by name and folder. A hash comparison matches by contents instead.
How do I check a backup is complete on a Mac? In Terminal, diff -rq lists files that are in only one folder or that differ.