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

Preguntas similare

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



Respuesta Responder a este mensaje
#2 Anderón
15/04/2005 - 09:08 | Informe spam
Gracias Jose Manuel por contestar tan rápido, tengo dos Script: el primero
crea el dir. con la fecha del backup, se llama lanzar.bat

set dd=%date:~0,2%
set mm=%date:~3,2%
set aa=%date:~8,2%

set fecha=%aa%-%mm%-%dd%

d:
cd \
md %fecha%
cd \
cd copyxp
call CopyShadow.cmd d: %fecha%

y el CopyShadow es:

setlocal

if NOT "%CALLBACK SCRIPT%"=="" goto :IS CALLBACK

set SOURCE DRIVE LETTER=%~d1
set SOURCE RELATIVE PATH=%~pnx1
set DESTINATION PATH=%fecha%

set CALLBACK SCRIPT=%~s0
set TEMP GENERATED SCRIPT=GeneratedVarsTempScript.cmd

"%~dp0vshadow.exe" -script=%TEMP GENERATED SCRIPT% -exec=%CALLBACK SCRIPT%
%SOURCE DRIVE LETTER%

rem del /f %TEMP GENERATED SCRIPT%

@goto :EOF

:IS CALLBACK
setlocal

call %TEMP GENERATED SCRIPT%

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

Como ves, no he cambiado apenas nada, el error aparece en la línea

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

y es que no encuentra ese path de origen.

Un saludo,
Anderón





"JM Tella Llop [MVP Windows]" escribió en el mensaje
news:
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
>
>
>


Respuesta Responder a este mensaje
#3 JM Tella Llop [MVP Windows]
15/04/2005 - 15:47 | Informe spam
¿que quieres copiar? ¿lo que hay en la carpeta principal de D:\ a esa
subcarpeta?...

Entonces deberias poner:

call CopyShadow.cmd d:\ d:\%fecha%

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:
Gracias Jose Manuel por contestar tan rápido, tengo dos Script: el primero
crea el dir. con la fecha del backup, se llama lanzar.bat

set dd=%date:~0,2%
set mm=%date:~3,2%
set aa=%date:~8,2%

set fecha=%aa%-%mm%-%dd%

d:
cd \
md %fecha%
cd \
cd copyxp
call CopyShadow.cmd d: %fecha%

y el CopyShadow es:

setlocal

if NOT "%CALLBACK SCRIPT%"=="" goto :IS CALLBACK

set SOURCE DRIVE LETTER=%~d1
set SOURCE RELATIVE PATH=%~pnx1
set DESTINATION PATH=%fecha%

set CALLBACK SCRIPT=%~s0
set TEMP GENERATED SCRIPT=GeneratedVarsTempScript.cmd

"%~dp0vshadow.exe" -script=%TEMP GENERATED SCRIPT% -exec=%CALLBACK SCRIPT%
%SOURCE DRIVE LETTER%

rem del /f %TEMP GENERATED SCRIPT%

@goto :EOF

:IS CALLBACK
setlocal

call %TEMP GENERATED SCRIPT%

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

Como ves, no he cambiado apenas nada, el error aparece en la línea

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

y es que no encuentra ese path de origen.

Un saludo,
Anderón





"JM Tella Llop [MVP Windows]" escribió en el mensaje
news:
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
>
>
>






Respuesta Responder a este mensaje
#4 Anderon
15/04/2005 - 21:34 | Informe spam
Vamos a ver, estoy haciendo pruebas ahora en mi casa. El problema al final
es similar (con un script parecido en el que no he incluido la creación
previa del directorio fecha). Vamos a ver si no te lio y no me lio yo. Llamo
al cmd con los siguientes parámetros

"copyshadow d:\ f:\copia"

El resultado en un fichero de salida creado a propósito es este:

E:\copyxp>setlocal

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

E:\copyxp>set SOURCE DRIVE LETTER=d:

E:\copyxp>set SOURCE RELATIVE PATH=\

E:\copyxp>set DESTINATION PATH
E:\copyxp>set CALLBACK SCRIPT=E:\copyxp\COPYSH~1.CMD

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

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

E:\copyxp>setlocal

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

E:\copyxp>setlocal

E:\copyxp>call GeneratedVarsTempScript.cmd

[This script is generated by VSHADOW.EXE for the shadow set
{06336761-c4b7-4919-b015-39aaa454ee6f}]


E:\copyxp>SET SHADOW_SET_ID={06336761-c4b7-4919-b015-39aaa454ee6f}

E:\copyxp>SET SHADOW_ID_1={400d2349-ddb4-4869-a05e-5615c97defd8}

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

E:\copyxp>copy "\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\"
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\preferences.ini
1 archivos copiados.

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
'E:\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 '\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 '\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 '\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 (Service State)' is now entirely excluded
from the backup:
(the top-level non-selectable component '\Config Directory' is an excluded
component)
- 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 '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 {06336761-c4b7-4919-b015-39aaa454ee6f} ...
- Adding volume \\?\Volume{83e566a4-6b97-11d9-b293-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
{06336761-c4b7-4919-b015-39aaa454ee6f} ...

* SNAPSHOT ID = {400d2349-ddb4-4869-a05e-5615c97defd8} ...
- Shadow copy Set: {06336761-c4b7-4919-b015-39aaa454ee6f}
- Original count of shadow copies = 1
- Original Volume name: \\?\Volume{83e566a4-6b97-11d9-b293-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 'E:\copyxp\COPYSH~1.CMD' ...
- Mark all writers as succesfully backed up...
Completing the backup (BackupComplete) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)

Snapshot creation done.

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

Como ves todo aparentemente es correcto pero en el directorio destino
f:\copia yo no encuentro nada, ¿por qué? ¿no le he puesto como destino se
path?
Luego ejecuto un Vshadow -q y no me muestra nada ¿¿¿???

Un saludo,
Anderón


"JM Tella Llop [MVP Windows]" escribió en el mensaje
news:
¿que quieres copiar? ¿lo que hay en la carpeta principal de D:\ a esa
subcarpeta?...

Entonces deberias poner:

call CopyShadow.cmd d:\ d:\%fecha%

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:
Gracias Jose Manuel por contestar tan rápido, tengo dos Script: el
primero
crea el dir. con la fecha del backup, se llama lanzar.bat

set dd=%date:~0,2%
set mm=%date:~3,2%
set aa=%date:~8,2%

set fecha=%aa%-%mm%-%dd%

d:
cd \
md %fecha%
cd \
cd copyxp
call CopyShadow.cmd d: %fecha%

y el CopyShadow es:

setlocal

if NOT "%CALLBACK SCRIPT%"=="" goto :IS CALLBACK

set SOURCE DRIVE LETTER=%~d1
set SOURCE RELATIVE PATH=%~pnx1
set DESTINATION PATH=%fecha%

set CALLBACK SCRIPT=%~s0
set TEMP GENERATED SCRIPT=GeneratedVarsTempScript.cmd

"%~dp0vshadow.exe" -script=%TEMP GENERATED SCRIPT% -exec=%CALLBACK
SCRIPT%
%SOURCE DRIVE LETTER%

rem del /f %TEMP GENERATED SCRIPT%

@goto :EOF

:IS CALLBACK
setlocal

call %TEMP GENERATED SCRIPT%

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

Como ves, no he cambiado apenas nada, el error aparece en la línea

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

y es que no encuentra ese path de origen.

Un saludo,
Anderón





"JM Tella Llop [MVP Windows]" escribió en el
mensaje
news:
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
>
>
>










Respuesta Responder a este mensaje
#5 JM Tella Llop [MVP Windows]
15/04/2005 - 21:44 | Informe spam
f: ¿no será una unidad de red? ¿no?

y ¿la letra Z: la tienes libre o asignada a algun disco o recurso? He visto
un bug con esto.

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.



"Anderon" wrote in message
news:
Vamos a ver, estoy haciendo pruebas ahora en mi casa. El problema al final
es similar (con un script parecido en el que no he incluido la creación
previa del directorio fecha). Vamos a ver si no te lio y no me lio yo.
Llamo al cmd con los siguientes parámetros

"copyshadow d:\ f:\copia"

El resultado en un fichero de salida creado a propósito es este:

E:\copyxp>setlocal

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

E:\copyxp>set SOURCE DRIVE LETTER=d:

E:\copyxp>set SOURCE RELATIVE PATH=\

E:\copyxp>set DESTINATION PATH>
E:\copyxp>set CALLBACK SCRIPT=E:\copyxp\COPYSH~1.CMD

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

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

E:\copyxp>setlocal

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

E:\copyxp>setlocal

E:\copyxp>call GeneratedVarsTempScript.cmd

[This script is generated by VSHADOW.EXE for the shadow set
{06336761-c4b7-4919-b015-39aaa454ee6f}]


E:\copyxp>SET SHADOW_SET_ID={06336761-c4b7-4919-b015-39aaa454ee6f}

E:\copyxp>SET SHADOW_ID_1={400d2349-ddb4-4869-a05e-5615c97defd8}

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

E:\copyxp>copy "\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\"
\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\preferences.ini
1 archivos copiados.

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
'E:\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 '\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 '\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 '\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 (Service State)' is now entirely excluded
from the backup:
(the top-level non-selectable component '\Config Directory' is an
excluded component)
- 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 '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 {06336761-c4b7-4919-b015-39aaa454ee6f} ...
- Adding volume \\?\Volume{83e566a4-6b97-11d9-b293-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
{06336761-c4b7-4919-b015-39aaa454ee6f} ...

* SNAPSHOT ID = {400d2349-ddb4-4869-a05e-5615c97defd8} ...
- Shadow copy Set: {06336761-c4b7-4919-b015-39aaa454ee6f}
- Original count of shadow copies = 1
- Original Volume name:
\\?\Volume{83e566a4-6b97-11d9-b293-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 'E:\copyxp\COPYSH~1.CMD' ...
- Mark all writers as succesfully backed up...
Completing the backup (BackupComplete) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)

Snapshot creation done.

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

Como ves todo aparentemente es correcto pero en el directorio destino
f:\copia yo no encuentro nada, ¿por qué? ¿no le he puesto como destino se
path?
Luego ejecuto un Vshadow -q y no me muestra nada ¿¿¿???

Un saludo,
Anderón


"JM Tella Llop [MVP Windows]" escribió en el mensaje
news:
¿que quieres copiar? ¿lo que hay en la carpeta principal de D:\ a esa
subcarpeta?...

Entonces deberias poner:

call CopyShadow.cmd d:\ d:\%fecha%

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:
Gracias Jose Manuel por contestar tan rápido, tengo dos Script: el
primero
crea el dir. con la fecha del backup, se llama lanzar.bat

set dd=%date:~0,2%
set mm=%date:~3,2%
set aa=%date:~8,2%

set fecha=%aa%-%mm%-%dd%

d:
cd \
md %fecha%
cd \
cd copyxp
call CopyShadow.cmd d: %fecha%

y el CopyShadow es:

setlocal

if NOT "%CALLBACK SCRIPT%"=="" goto :IS CALLBACK

set SOURCE DRIVE LETTER=%~d1
set SOURCE RELATIVE PATH=%~pnx1
set DESTINATION PATH=%fecha%

set CALLBACK SCRIPT=%~s0
set TEMP GENERATED SCRIPT=GeneratedVarsTempScript.cmd

"%~dp0vshadow.exe" -script=%TEMP GENERATED SCRIPT% -exec=%CALLBACK
SCRIPT%
%SOURCE DRIVE LETTER%

rem del /f %TEMP GENERATED SCRIPT%

@goto :EOF

:IS CALLBACK
setlocal

call %TEMP GENERATED SCRIPT%

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

Como ves, no he cambiado apenas nada, el error aparece en la línea

copy "%SHADOW_DEVICE_1%\%SOURCE_RELATIVE_PATH%"%DESTINATION_PATH%

y es que no encuentra ese path de origen.

Un saludo,
Anderón





"JM Tella Llop [MVP Windows]" escribió en el
mensaje
news:
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
>
>
>














Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaSiguiente Respuesta Tengo una respuesta
Search Busqueda sugerida