Table B-9
Clone switch usage examples (continued)
Function
Switch
Restores disk one from an image file being sent from the
GhostCast Server with the session name “sessionname” without
the final warning prompt.
ghost.exe -clone,src=@MCsessionname,dst=1
-sure
Creates an image file of disk one to an image file being created
by the GhostCast Server with the session name “sessionname”
without the final warning prompt.
ghost.exe -clone,src=1,dst=@MCsessionname
-sure
Creates an image file of the second partition on disk 2 onto the
first tape drive.
ghost.exe -clone,mode=create,src=2:2,dst=@MT0
Creates an image file with only the selected partitions.
This example selects partitions 1, 4, and 6 from disk 2.
ghost.exe -clone,mode=pcreate,src=2:1:4:6,dst=d:\
part146.gho
ghost.exe -clone, mode=restore,
src=VirtualMachine.vmdk,dst=1
ghost.exe -clone, mode=prestore,
src=VirtualMachine.vmdk:1,dst=1:1
Includes all mounted volumes in the image.
ghost32.exe -clone, mode=create,
src=@OS,dst=allvols.gho
Includes the specified volumes in the image.
ghost32.exe -clone, mode=pcreate,
src=@OS:C:D,dst=2vols.gho
Batch file example
This example restores disk one from an image file sent by the GhostCast Server
using session name SN and resizes the first partition to 450 MB, the second to
1599 MB, and the third to 2047 MB. This is done in a batch file with no user
intervention. The batch file commands change depending on the success or failure
of the Symantec Ghost operation.
Batch file contents:
@ECHO OFF
ghost.exe
-clone,src=@mcSN,dst=1,sze1=450M,sze2=1599,sze3=2047M -batch
IF ERRORLEVEL 1 GOTO PROBLEM
ECHO Symantec Ghost exited with value 0 indicating success.
REM ** Add any commands required to run if Symantec Ghost
REM succeeds here**
GOTO FINISH
Command-line switches
Using the clone switch
156
Содержание GHOST IMAGING FOUNDATION 7.1
Страница 1: ...Symantec Ghost Imaging Foundation 7 1...
Страница 3: ...Symantec Corporation 20330 Stevens Creek Blvd Cupertino CA 95014 http www symantec com...
Страница 78: ...Managing partitions using GDisk Support for large hard disks 78...
Страница 100: ...Editing registry keys and values using GhRegEdit Using GhRegEdit 100...
Страница 116: ...Using GhostCasting to create and restore images Running Ghost exe on a client computer 116...
Страница 122: ...GhostCasting from the command line GhostCast Server command line options 122...
Страница 130: ...GDisk disk wipe specifications Determining disk size 130...
Страница 166: ...Ghost for Linux Symantec Ghost utility support 166...
Страница 170: ...Configuring firewalls Symantec Ghost port configuration 170...
Страница 180: ...Troubleshooting Problems running Symantec Ghost 180...