How to list all the modified files in a shadow-volume?
Asked Answered
P

4

6

When a Restore Point is created, Windows starts monitoring the volume and any changes are recorded in a proprietory diff file inside System Volume Information folder.

Thorough VSS-SDK api, we can expose the volume, but it shows us the whole volume and all the files/folders which have or have-not been modified since snapshot creation, and on access to any file, a filter-driver applies the diff, if required, and shows us the file.

My Question: Is it possible to list all the modified files, with respect to a restore point (except the brute-force method to compare each file inside the shadow-volume and the main-volume)?

How does Windows do it when we click on the previous versions tab in a file's Properties?

Polyphone answered 27/8, 2010 at 8:21 Comment(0)
P
0

I guess the best way IS brute-force, coupled with USN number-comparison For reference, the link to a similar question is here

Polyphone answered 6/9, 2010 at 6:54 Comment(0)
L
3

Make use of the NTFS Change Journal. Windows logs all changes to all files on an NTFS volume in a journal database (if the journal is on). This can be queried to return all changes from a specific start USN number (your restore point)

Here is an article about the journal that helped me a lot while implementing change journal functionality

Loquacity answered 27/10, 2010 at 14:4 Comment(2)
thanks for the link, would you know how to get the USN number for the restore point? I"m struggling to get this info and have a unanswered question if you have a second? #10544933Lumberjack
I've added an answer to your question... Although it may not be exactly what you are looking for ;-)Loquacity
F
1

To detect changes in the current file system vs a shadow copy, you can use a third party software like WinMerge with the shadow copy UNC paths http://winmerge.org/. This will provide a GUI for comparisons

For example, use "C:\", vs "\localhost\C$\@GMT-2017.08.24-18.07.46"

Of course, enter a valid UNC path to coincide with the date and time of a shadow copy.

Ferromagnesian answered 24/8, 2017 at 18:15 Comment(0)
P
0

I guess the best way IS brute-force, coupled with USN number-comparison For reference, the link to a similar question is here

Polyphone answered 6/9, 2010 at 6:54 Comment(0)
P
-1

Windows know from the attributes date modified. It compares the the two file and checks the modified date.

Profit answered 2/9, 2010 at 20:59 Comment(1)
The date attributes (all three- creation,modified and access) can be easily modified programatically, so I don't think that's the case.Polyphone

© 2022 - 2024 — McMap. All rights reserved.