Skip to main content

Diff missing files

First list all files in the directory and it's sub directories:

K:\git\usr\bin\find.exe H:\ -type f | sort > today.txt

The same with the backup directory:

K:\git\usr\bin\find.exe H:\@GMT-2023.02.02-22.00.00 -type f | sort > past.txt

Remove (regex) the time stamp in all pathes at past.txt:

@GMT-2023.02.02-22.00.00

Diff today.txt and past.txt:

diff past.txt today.txt > diff.txt

Remove (regex) all new files and diff comments:

^[^<].+\r*\n

Remove (regex) all diff characters showing that this files were deleted:

< 

Now you have a list of all missing files which where deleted from one day to another.