CmdID

CmdID / Commands / refsutil

refsutil streamsnapshot

The refsutil streamsnapshot command allows you to manage snapshots of data streams within files in the Resilient File System (ReFS). Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

The refsutil streamsnapshot command allows you to manage snapshots of data streams within files in the Resilient File System (ReFS). You can create, delete, list, or compare snapshots of data streams at specified points in time. The file.dat file contains the data streams for which you want to create, delete, list, or compare snapshots. Essentially, it's the target file upon which this utility performs its operations.

refsutil streamsnapshot [/c <name>] [/l] [/d <name>] [/q <name>] <file[:stream]>

To create a snapshot named "snapshot_jan_2024" of the stream at the current point in time, run the following command

refsutil streamsnapshot /c "snapshot_jan_2024" C:\file.datIdentify
/cCreates a snapshot named of the stream specified by file[:stream] at the current point in time. Windows commands reference

To delete a snapshot named "snapshot_jan_2024" from the file, run the following command

refsutil streamsnapshot /d "snapshot_jan_2024" C:\file.datIdentify
/dDeletes the snapshot named from the specified file . Windows commands reference

To list all snapshots for the stream in the file matching any pattern using the * wildcard, run the following command

refsutil streamsnapshot /l "*" C:\file.datIdentify
/lLists all snapshots for the stream specified by file[:stream] that match the given . Windows commands reference

To list all modifications between the snapshot "snapshot_jan_2024" and the stream "snapshot_feb_2024", run the following command

refsutil streamsnapshot /q "snapshot_jan_2024" C:\file.dat:snapshot_feb_2024Identify
/qLists all modifications between the snapshot and the current state of the stream specified by [:stream]. Windows commands reference
/c <name>Creates a snapshot named <name> of the stream specified by file[:stream] at the current point in time. This option is mutually exclusive with /d, /l, and /q.
/d <name>Deletes the snapshot named <name> from the specified file <file>. This parameter ignores the [:stream] portion of the file path and is mutually exclusive with /c, /l, and /q.
/l <name>Lists all snapshots for the stream specified by file[:stream] that match the given <name>. Wildcards are allowed in <name>. This parameter is mutually exclusive with /c, /d, and /q.
/q <name>Lists all modifications between the snapshot <name> and the current state of the stream specified by [:stream]. Both must reference streams in the same snapshot chain, with <name> being older than [:stream]. This parameter is mutually exclusive with /c, /d, and /l.