Zip-файлы и Volume Shadow Copy

1736
Sachin Kainth

Я создаю резервную копию большого количества данных с помощью WinRAR и создаю файл .rar из этих резервных копий. Поскольку я резервирую около 20 ГБ данных одновременно, этот процесс занимает некоторое время. Иногда мне нужно открыть несколько файлов, которые я копирую. Это заставляет WinRAR сообщать, что возникла проблема с доступом к файлу. Мой вопрос: как я могу выполнить архивирование с помощью Volume Shadow Copy, чтобы к файлам обращались без проблем?

2

1 ответ на вопрос

4
harrymc

You should use the Diskshadow command to create a shadow copy to temporarily mount it as a volume. Once you do that you can use any tool such as winrar to make the backup.

The shadow copy behaves like a virtual disk that represents the state of the volume at the time it was created. If you continue to modify files, these modifications will not appear in the shadow copy, but the disk space taken by these files will double since their old copies will be kept on the disk until the shadow copy is deleted.

Here is an example based on the above Microsoft documentation that I linked to, where we backup disk C: and the shadow copy is called S: (which is identical to C: except frozen in time). The example is entirely theoretic, as I have not tested it.

diskshadow -s startshadow_script.txt <winrar of files in S:> diskshadow -s endshadow_script.txt 

startshadow_script.txt

set context persistent nowriters set verbose on add volume C: alias MyBackupName create expose %MyBackupName% S: 

endshadow_script.txt

set verbose on delete shadows exposed S: 
Это работает очень хорошо, хотя `diskhadow` был доступен только на моем 2008 R2 Server, но не на Win7 Professional. RomanSt 10 лет назад 0
Я скопировал DiskShadow.exe из Windows 2016, и он работает на Windows 10 Pro. Благодарю. Damien 6 лет назад 0
Я скопировал DiskShadow.exe из Windows 2016, и он не показывает вывод на моем Windows 10 Pro. Интересно, есть ли dll, чтобы согласиться с этим, это другая версия Brain2000 5 лет назад 0

Похожие вопросы