我们的服务器上每天都会使用 acronis 进行备份,但是为了更加合理,我想将 .pst 文件从我们的文件服务器复制到另一台服务器。
我在 2008 和 Hobocopy 1.0 稳定版上使用 forfiles,它与 robocopy 类似,但使用 VSS 来复制打开和锁定的文件。当我运行此命令时,我收到“错误:未找到“*.pst”类型的文件。”
forfiles -p "C:\Data\Mail" /m *.pst -c "cmd /c c:\scripts\hobocopy.exe /incremental /skipdenied /verbosity=4 /r /ignorepattern=backup* echo @file x:\NetworkPSTbackuplocation"
如果我在特定用户的目录上运行它,我会收到不同的错误:
forfiles -p "C:\Data\Mail\UserFolder" /m *.pst -c "cmd /c c:\scripts\hobocopy.exe /incremental /skipdenied /verbosity=4 /r /ignorepattern=backup* /simulate @file C:\pstbackup"
输出:
HoboCopy (c) 2006 Wangdera Corporation. [email protected]
Calling CoInitialize
Starting a incremental copy from C:\Data\Mail\UserFolder\archive2010To2014.pst to
C:\pstbackup
Creating DOM document object.
Loading state file from (null).
Turning off validation
Failed to load state file from (null). Reason: The parameter is incorrect.
.
HoboCopy (c) 2006 Wangdera Corporation. [email protected]
Calling CoInitialize
Starting a incremental copy from C:\Data\Mail\UserFolder\user.pst to C:\pstback
up
Creating DOM document object.
Loading state file from (null).
Turning off validation
Failed to load state file from (null). Reason: The parameter is incorrect.
.
答案1
如果使用“/incremental”参数,则需要“/statefile”参数。解释如下https://github.com/candera/hobocopy