Script de shadow copy de Tella. Problemas

14/04/2005 - 17:21 por Anderón | Informe spam
Hola foreros/as

Probando el script que hace tiempo publicó JMT sobre shadow copy, he tenido
algunos problemas. Os pego el fichero de salida para ver si me ayudais
porque no logro que vaya correctamente:

<<
D:\copyxp>setlocal

D:\copyxp>if NOT "" == "" goto :IS CALLBACK

D:\copyxp>set SOURCE DRIVE LETTER=D:

D:\copyxp>set SOURCE RELATIVE PATH=\copyxp

D:\copyxp>set DESTINATION PATH-04-14

D:\copyxp>set CALLBACK SCRIPT=D:\copyxp\COPYSH~1.CMD

D:\copyxp>set TEMP GENERATED SCRIPT=GeneratedVarsTempScript.cmd

D:\copyxp>"D:\copyxp\vshadow.exe" -script=GeneratedVarsTempScript.cmd -execD:\copyxp\COPYSH~1.CMD D:

D:\copyxp>setlocal

D:\copyxp>if NOT "D:\copyxp\COPYSH~1.CMD" == "" goto :IS CALLBACK

D:\copyxp>setlocal

D:\copyxp>call GeneratedVarsTempScript.cmd

[This script is generated by VSHADOW.EXE for the shadow set
{a2ccb4a2-1685-4439-bd9a-e147b888df15}]


D:\copyxp>SET SHADOW_SET_ID={a2ccb4a2-1685-4439-bd9a-e147b888df15}

D:\copyxp>SET SHADOW_ID_1={a23cebb4-de7d-480c-ae59-1fa8a5f28013}

D:\copyxp>SET
SHADOW_DEVICE_1=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

D:\copyxp>copy "\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\"
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\*
0 archivos copiados. -->> aqui aparece este error y no encuentro
esta ruta en el equipo

VSHADOW.EXE 2.0 - Volume Shadow Copy sample client
Copyright (C) 2004 Microsoft Corporation. All rights reserved.


(Option: Generate SETVAR script 'GeneratedVarsTempScript.cmd')
(Option: Execute binary/script after shadow creation
'D:\copyxp\COPYSH~1.CMD')
(Option: Create shadow copy set)
(Gathering writer metadata...)
(Waiting for the asynchronous operation to finish...)
Initialize writer metadata ...
Discover directly excluded components ...
- Excluding writer 'MSDEWriter' since it has no selected components for
restore.
Discover components that reside outside the shadow set ...
- Component '\COM+ Registration Database' from writer 'Microsoft Writer
(Bootable State)' is excluded from backup (it requires C:\ in the shadow
set)
- Component '\Registry' from writer 'Microsoft Writer (Bootable State)' is
excluded from backup (it requires C:\ in the shadow set)
- Component '\Config Directory' from writer 'Microsoft Writer (Service
State)' is excluded from backup (it requires C:\ in the shadow set)
- Component '\Event Logs' from writer 'Microsoft Writer (Service State)' is
excluded from backup (it requires C:\ in the shadow set)
- Component '\WMI' from writer 'WMI Writer' is excluded from backup (it
requires C:\ in the shadow set)
Discover all excluded components ...
Discover excluded writers ...
- The writer 'Microsoft Writer (Bootable State)' is now entirely excluded
from the backup:
(it does not contain any components that can be potentially included in
the backup)
- The writer 'Microsoft Writer (Service State)' is now entirely excluded
from the backup:
(the top-level non-selectable component '\Config Directory' is an excluded
component)
- The writer 'WMI Writer' is now entirely excluded from the backup:
(it does not contain any components that can be potentially included in
the backup)
Discover explicitly included components ...
Verifying explicitly specified writers/components ...
Select explicitly included components ...
Creating shadow set {a2ccb4a2-1685-4439-bd9a-e147b888df15} ...
- Adding volume \\?\Volume{0fa5eb11-1dde-11d9-b04b-806d6172696f}\ [D:\] to
the shadow set...
Preparing for backup ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Creating the shadow (DoSnapshotSet) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Shadow copy set succesfully created.

List of created shadow copies:


Querying all shadow copies with the SnapshotSetID
{a2ccb4a2-1685-4439-bd9a-e147b888df15} ...

* SNAPSHOT ID = {a23cebb4-de7d-480c-ae59-1fa8a5f28013} ...
- Shadow copy Set: {a2ccb4a2-1685-4439-bd9a-e147b888df15}
- Original count of shadow copies = 1
- Original Volume name: \\?\Volume{0fa5eb11-1dde-11d9-b04b-806d6172696f}\
[D:\]
- Shadow copy device name:
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
- Originating machine: (null)
- Service machine: (null)
- Not Exposed
- Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
- Attributes: Auto_Release

Generating the SETVAR script (GeneratedVarsTempScript.cmd) ...
Executing command 'D:\copyxp\COPYSH~1.CMD' ...
ERROR: Command line '"D:\copyxp\COPYSH~1.CMD"' failed!. Aborting the
backup...
- Returned error code: 1
- Backup failed. Mark all writers as not succesfully backed up...
Completing the backup (BackupComplete) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)

D:\copyxp>rem del /f GeneratedVarsTempScript.cmd









Por otra parte una duda, en el caso de que logre que funcione (espero que
con vuestra ayuda así sea) ¿cómo se restaura una copia hecha de esta manera?

Un saludo y gracias anticipadas,
Anderon
 

Leer las respuestas

#1 JM Tella Llop [MVP Windows]
14/04/2005 - 19:42 | Informe spam
Dime la sintaxis exacta con el cual lo ejecutas.
(no se puede ejecutar el origrn una unidad mapeada de red.)

Y la recuperacion con un simple copy. El shadow copy no es nada mas que una
copia vulgar..pero de ficheros que estan abiertos y que una copia vulgar
no podría.

Jose Manuel Tella Llop
MVP - Windows
(quitar XXX)
http://www.multingles.net/jmt.htm

Este mensaje se proporciona "como está" sin garantías de ninguna clase,
y no otorga ningún derecho.

This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use.



"Anderón" wrote in message
news:
Hola foreros/as

Probando el script que hace tiempo publicó JMT sobre shadow copy, he
tenido
algunos problemas. Os pego el fichero de salida para ver si me ayudais
porque no logro que vaya correctamente:

<<
D:\copyxp>setlocal

D:\copyxp>if NOT "" == "" goto :IS CALLBACK

D:\copyxp>set SOURCE DRIVE LETTER=D:

D:\copyxp>set SOURCE RELATIVE PATH=\copyxp

D:\copyxp>set DESTINATION PATH-04-14

D:\copyxp>set CALLBACK SCRIPT=D:\copyxp\COPYSH~1.CMD

D:\copyxp>set TEMP GENERATED SCRIPT=GeneratedVarsTempScript.cmd

D:\copyxp>"D:\copyxp\vshadow.exe" -script=GeneratedVarsTempScript.cmd -exec> D:\copyxp\COPYSH~1.CMD D:

D:\copyxp>setlocal

D:\copyxp>if NOT "D:\copyxp\COPYSH~1.CMD" == "" goto :IS CALLBACK

D:\copyxp>setlocal

D:\copyxp>call GeneratedVarsTempScript.cmd

[This script is generated by VSHADOW.EXE for the shadow set
{a2ccb4a2-1685-4439-bd9a-e147b888df15}]


D:\copyxp>SET SHADOW_SET_ID={a2ccb4a2-1685-4439-bd9a-e147b888df15}

D:\copyxp>SET SHADOW_ID_1={a23cebb4-de7d-480c-ae59-1fa8a5f28013}

D:\copyxp>SET
SHADOW_DEVICE_1=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1

D:\copyxp>copy "\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\"
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\*
0 archivos copiados. -->> aqui aparece este error y no encuentro
esta ruta en el equipo

VSHADOW.EXE 2.0 - Volume Shadow Copy sample client
Copyright (C) 2004 Microsoft Corporation. All rights reserved.


(Option: Generate SETVAR script 'GeneratedVarsTempScript.cmd')
(Option: Execute binary/script after shadow creation
'D:\copyxp\COPYSH~1.CMD')
(Option: Create shadow copy set)
(Gathering writer metadata...)
(Waiting for the asynchronous operation to finish...)
Initialize writer metadata ...
Discover directly excluded components ...
- Excluding writer 'MSDEWriter' since it has no selected components for
restore.
Discover components that reside outside the shadow set ...
- Component '\COM+ Registration Database' from writer 'Microsoft Writer
(Bootable State)' is excluded from backup (it requires C:\ in the shadow
set)
- Component '\Registry' from writer 'Microsoft Writer (Bootable State)' is
excluded from backup (it requires C:\ in the shadow set)
- Component '\Config Directory' from writer 'Microsoft Writer (Service
State)' is excluded from backup (it requires C:\ in the shadow set)
- Component '\Event Logs' from writer 'Microsoft Writer (Service State)'
is
excluded from backup (it requires C:\ in the shadow set)
- Component '\WMI' from writer 'WMI Writer' is excluded from backup (it
requires C:\ in the shadow set)
Discover all excluded components ...
Discover excluded writers ...
- The writer 'Microsoft Writer (Bootable State)' is now entirely excluded
from the backup:
(it does not contain any components that can be potentially included in
the backup)
- The writer 'Microsoft Writer (Service State)' is now entirely excluded
from the backup:
(the top-level non-selectable component '\Config Directory' is an
excluded
component)
- The writer 'WMI Writer' is now entirely excluded from the backup:
(it does not contain any components that can be potentially included in
the backup)
Discover explicitly included components ...
Verifying explicitly specified writers/components ...
Select explicitly included components ...
Creating shadow set {a2ccb4a2-1685-4439-bd9a-e147b888df15} ...
- Adding volume \\?\Volume{0fa5eb11-1dde-11d9-b04b-806d6172696f}\ [D:\] to
the shadow set...
Preparing for backup ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Creating the shadow (DoSnapshotSet) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Shadow copy set succesfully created.

List of created shadow copies:


Querying all shadow copies with the SnapshotSetID
{a2ccb4a2-1685-4439-bd9a-e147b888df15} ...

* SNAPSHOT ID = {a23cebb4-de7d-480c-ae59-1fa8a5f28013} ...
- Shadow copy Set: {a2ccb4a2-1685-4439-bd9a-e147b888df15}
- Original count of shadow copies = 1
- Original Volume name:
\\?\Volume{0fa5eb11-1dde-11d9-b04b-806d6172696f}\
[D:\]
- Shadow copy device name:
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
- Originating machine: (null)
- Service machine: (null)
- Not Exposed
- Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
- Attributes: Auto_Release

Generating the SETVAR script (GeneratedVarsTempScript.cmd) ...
Executing command 'D:\copyxp\COPYSH~1.CMD' ...
ERROR: Command line '"D:\copyxp\COPYSH~1.CMD"' failed!. Aborting the
backup...
- Returned error code: 1
- Backup failed. Mark all writers as not succesfully backed up...
Completing the backup (BackupComplete) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)

D:\copyxp>rem del /f GeneratedVarsTempScript.cmd







Por otra parte una duda, en el caso de que logre que funcione (espero que
con vuestra ayuda así sea) ¿cómo se restaura una copia hecha de esta
manera?

Un saludo y gracias anticipadas,
Anderon



Preguntas similares