Windows 系统是自带快照功能的,并且是基于文件系统的快照,还可以通过系统自带的文件历史还原。Windows 称之为 Volume Shadow Copy (VSS),俗称「卷影复制」,基于 NTFS 文件系统实现。
新建快照演示:
先在 E 盘新建一个文件,然后开启快照。
#需要使用管理员权限打开命令行窗口 >wmic shadowcopy call create Volume=E:\ 执行(Win32_ShadowCopy)->create() 方法执行成功。 外参数: instance of __PARAMETERS { ReturnValue = 0; ShadowID = "{4D196F30-1874-4B71-9C64-B89BADC8E71A}"; };
编辑并保存该文件,在文件管理器打开这个文件的属性,可以打开和恢复到之前的版本。

删除快照则使用 vssadmin 命令,该命令可以查看和删除快照,使用方法可查看帮助手册。
vssadmin delete shadows /for=E:
注:
1.Windows 的快照是通过 Copy On Write 实现的,对性能有一定影响。
2.开启还原点功能会导致老的快照更快的被删除,因为快照占用的空间是有限的,而还原点会占用大量的快照空间,快照空间不足就会删除旧的快照。
3.快照不等同于文件历史记录,不是每次编辑都会有一个历史版本,它是快照,不是文件版本控制器,不要当成 git 使用。只有每打一次快照,才有一次文件历史记录。
4.卷影复制是针对整个盘的,临时文件会被自动忽略,有限支持排除指定文件功能。
如果要浏览以前的快照可以用这个软件
ShadowCopyView – Shadow copy viewer for Windows 10/8/7/Vista
ShadowCopyView is simple tool for Windows 10/8/7/Vista that lists the snapshots of your hard drive created by the ‘Volume Shadow Copy’ service of Windows. Every snapshot contains an older versions of your files and folders from the date that the snapshot was created, you can browse the older version of your files and folders, and optionally copy them into a folder on your disk.
参考
卷影复制服务 – Win32 apps
卷影复制服务 (VSS) 是一组 COM 接口,用于实现框架,以便在系统上的应用程序继续写入卷时执行卷备份。 有关系统管理员 VSS 的简介,请参阅 TechNet 库中的 卷影复制服务 。 MICROSOFT Windows XP 及更高版本支持 VSS。 有关特定编程元素的运行时要求的信息,请参阅该元素文档的”要求”部分。 所有 32 位 VSS 应用程序 (请求者、提供程序和编写器) 都必须作为本机 32 位或 64 位应用程序运行。 不支持在 WOW64 下运行它们。 有关详细信息,请参阅 支持的配置和限制 。 支持Windows Server 2003 和 Windows XP: 支持在 WOW64 下运行 32 位 VSS 请求程序,但不支持系统状态备份。 不支持在 WOW64
Volume Shadow Copy Service
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, and Windows Server 2008 R2, Windows Server 2008, Windows 10, Windows 8.1, Windows 8, Windows 7 Backing up and restoring critical business data can be very complex due to the following issues: The data usually needs to be backed up while the applications that produce the data are still running.