通过 Windows 备份工具每 N 分钟进行一次备份

通过 Windows 备份工具每 N 分钟进行一次备份

尝试以高频率备份某个文件夹,

在此处输入图片描述

但最小选项是一天。这可能吗?
我也尝试了 cmd 工具 wbadmin,但其中不支持部分备份。

答案1

我会使用 Robocopy,这样您就可以备份您想要的内容,并且它只会备份发生变化的文件。

句法

robocopy \\<Source> \\<Destination>

例如

打开记事本,然后输入(使用正确的文件夹名称)

robocopy \\SourceServer\Share \\DestinationServer\My new folder\BackUps

并将其保存为 BackUp.bat(注意是 .bat)

然后,将此文件设置为根据需要通过 TaskScheduler(在您的控制面板中)运行。

此外,还有一个选项可以进行文件同步 -http://improve.dk/simple-file-synchronization-using-robocopy/

robocopy \\SourceServer\Share \\DestinationServer\Share /MIR /FFT /Z /XA:H /W:5

您可能感兴趣的参数(来自上面引用的链接)

/MIR specifies that robocopy should mirror the source directory and the destination directory. Beware that this may delete files at the destination.
/FFT uses fat file timing instead of NTFS. This means the granularity is a bit less precise. For across-network share operations this seems to be much more reliable - just don’t rely on the file timings to be completely precise to the second.
/Z ensures robocopy can resume the transfer of a large file in mid-file instead of restarting.
/XA:H makes robocopy ignore hidden files, usually these will be system files that we’re not interested in.
/W:5 reduces the wait time between failures to 5 seconds instead of the 30 second default.

相关内容