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

#6 Anderon
15/04/2005 - 22:55 | Informe spam
No, no, lei toda la documentación al respecto de este tip, creo que segui
todos los pasos y advertencias. De todos modos debe ser más un problema de
concepto porque en casa sí parece que vaya todo correctamente pero no logro
determinar cómo lo hace. Las unidades son locales (y no dispongo de Z:) pero
no sé donde se está
creado el snapshot ya que no lo encuentro en el destino que yo le marco (si
es que como parece que se esta creando porque al menos en casa el resultado
del script no da ningun error) Como digo el tema es que no guarda nada en el
destino a pesar de que el vshadow se ejecuta correctamente.

Si sigues el fichero de salida, no aparece error alguno, la orden más oscura
para mi es la del copy final pero no falla o no lo muestra al menos. Siento
alargar el hilo pero este script puede ser importante para nosotros y me
gustaría hacerlo funcionar (si no acabo con tu paciencia antes)

Fijate en el log de salida que ya te he adjuntado y dime si ves algo raro o
si ves todo normal. En algun punto tiene que estar fallando pero no lo
indica y yo el snapshot no lo veo

Gracias por tu paciencia y un saludo,
Anderón


"JM Tella Llop [MVP Windows]" escribió en el mensaje
news:
Mostrar la cita
#7 JM Tella Llop [MVP Windows]
15/04/2005 - 23:13 | Informe spam
TIernes puesto en REM

rem del /f GeneratedVarsTempScript.cmd

por tanto no borra ese fichero. ¿que contenido tiene?

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:%
Mostrar la cita
#8 Anderon
16/04/2005 - 16:22 | Informe spam
Sólo era para ver el contenido de ese .CMD que genera el propio script y que
al final borra para, supongo, no dejar rastro. No era otro el objetivo. Creo
que la orden fundamental es esta:

Mostrar la cita
Pero yo ese device que genera no lo localizao, aqui esta mi problema, que no
sé donde diablos construye este Device o SnapShot o ShadowCopy o como quiera
que se deba llamar.

Un saludo,
Anderón

"JM Tella Llop [MVP Windows]" escribió en el mensaje
news:
Mostrar la cita
#9 JM Tella Llop [MVP Windows]
16/04/2005 - 17:25 | Informe spam
No los localizas porque son los volumenes virutales que crea el shadow copy
y que solo existen en ese momento. Pero eso tiene que ser transparente para
ti. El script tiene que funcionar en cualquier maquina con XP.

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:u9ft1%
Mostrar la cita
Ads by Google
Search Busqueda sugerida