windows 通过批处理命令或 powershell 使用 vssadmin
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5052430/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using vssadmin through a batch command or powershell
提问by Jason Anderson
I need to access a file that is open by another process all the time. The best way would be for me to use Windows Shadow Copy to create another copy of the file and then use the copied file.
我需要访问一个一直由另一个进程打开的文件。对我来说最好的方法是使用 Windows Shadow Copy 创建文件的另一个副本,然后使用复制的文件。
Does anyone know how to use vssadmin to create a backup and extract a specific file through a batch command or power shell? I would like to automate the process to run every night.
有谁知道如何使用 vssadmin 创建备份并通过批处理命令或电源外壳提取特定文件?我想自动化这个过程,每晚运行。
Jason
杰森
回答by Andrew S
Here is a page with examples on how to create snapshots from a command line with vssadmin:
这是一个页面,其中包含有关如何使用 vssadmin 从命令行创建快照的示例:
http://blogs.msdn.com/b/adioltean/archive/2004/12/14/301868.aspx
http://blogs.msdn.com/b/adioltean/archive/2004/12/14/301868.aspx