Clicky

Hi. Can anyone help me on how to automate a ghost backup please?
I want to ghost the c:\ and save it to d:\ (seperate drive)
I am using GHOST32 11.5 (hot backup while windows is running) on XP
At the moment we run it manually during the day, but this obviously stops us from using the PC until it has finished. We want to automate it during the night/early hrs.
Thanks

asked 04/07/2011 10:16

Chris_Hopkins's gravatar image

Chris_Hopkins ♦♦


8 Answers:
Any helpers on this?
link
Chris_Hopkins's gravatar image

Chris_Hopkins

See post #21 in this link on how to create this. There are a bunch of parameters there in the backup.txt file. The line you should focus more on is:

-clone,MODE=create,SRC=1,DST=g:\test.gho

This basically tells it to create a clone from drive 1 (SRC=1) to the G: drive (DST = destination).

To understand what all those parameters are for and a ton of other options, open up the command prompt and do a CD (change directory) to where your ghost32.exe application is. Then type in ghost32.exe /? to bring up the ghost commands/switches list.

Once you finish creating this, all you have to do is create a simple batch file to run the ghost32.exe program at the scheduled time using the Windows scheduled task feature. So in the end, you should have something like the following:

FILE1 - Create a file called "ghost.bat" and save it somewhere
cd Program Files\ghost  <<--  CHANGE THIS TO WHEREVER YOU HAVE GHOST32
ghost32.exe @f:\backup.txt  <<--  F: drive or C: drive in your case

FILE2 - Your backup.txt stored wherever you want
-afile=f:\error.txt
-clone,MODE=create,SRC=1,DST=g:\test.gho
-ir
-noOSlayout
-szel
-fro

You might have to modify some of the settings above to suit your needs. Once you have these two files (ghost.bat and backup.txt), go to the Windows scheduled task via the Control Panel to schedule a job to run the script for ghost.bat

Another program you might want to look into if the above is too tedious is to use Acronis TrueImage. That program has a automated feature built into the friendly interface. See here for more info.
link
greyknight17's gravatar image

greyknight17

Thanks for your reply. that seems to work but i am having trouble trying to find the correct switches to use.
I have just run a manual ghost which when finished was just over 13.5GB.
When i run the example you gave above (but with slightly different switches), It reached 15% before i aborted as it was 23GB!! (which means it would have been around 150GB if i had let it finish)
the is the script i used...

-afile=c:\error.txt
-clone,MODE=copy,SRC=1,DST=d:\test.gho
-ir
-Z1
-SURE
-fro
-FX
-QUIET
-BATCH

and this is the settings i select when performing a manual ghost...

LOAD DISK TO IMAGE
SELECT C:\
SELCT DESTINATION D:\ AND NAME IT
FAST COMPRESSION IMAGE FILE
FORCE LOCK.

Do you know the switches to use to achieve that?

Many thanks for your help.

Chris
link
Chris_Hopkins's gravatar image

Chris_Hopkins

hI,
i CHANGED MY SCRIPT TO THE FOLLOWING...
-afile=c:\error.txt
-clone,MODE=create,SRC=1,DST=d:\test.gho
-Z1
-SURE
-FX
-QUIET
-BATCH
 This then gave me a ghost image at just over 13.5GB (the same as doing it manually).
I'm not sure what implications removing  -fro and -ir will have on the image but i  will try and restore the image back onto the PC tomorrow and see how it goes.

Any thoughts?

Also, do you know what the difference is between 'create' and 'copy'?
the example you gave contains the command 'Create' in it. But the examples that are in the help on ghost32 use 'copy'. although i couldn't get 'copy' to work (invalid destination error)
link
Chris_Hopkins's gravatar image

Chris_Hopkins

Try changing SRC to 1:1 or C: instead to see if that changes anything. Also try changing to MODE=DUMP.

Take a look here for additional details on those parameters.

What does force lock do? If you run ghost32.exe alone, where do you find that option? It should have the parameter to use listed in BOLD next to the description.

Your backup.txt file should look something like the following:

-afile=c:\error.txt
-clone,MODE=DUMP,SRC=C:,DST=d:\test.gho
-ir
-Z1
-SURE
-fro
-FX
-QUIET
-BATCH

Everything you mentioned for the specifications are above already except for the force lock option. I'm not exactly sure what that is.
link
greyknight17's gravatar image

greyknight17

Hi,
There is nothing in bold next to the description of the force lock option.
Here is a screen shot of it. I'll try changing mode to dump and src to c:.
Should i keep the -ir and -fro?
I'll have a read of the link you just gave me now.
 
 
Ghost32
Ghost32
 
 
Ghost32
Ghost32
 
link
Chris_Hopkins's gravatar image

Chris_Hopkins

Oops, i didn't mean to embed the image twice.
Here is a more clearer image.
 
 
link
Chris_Hopkins's gravatar image

Chris_Hopkins

Add the following as the first line in your ghost.bat file:

%SystemRoot%\system32\cmd.exe /c fsutil volume dismount C:

See if you still get that message in Ghost now.

You may leave -ir and -fro out if you like. Although bad blocks may still continue to work, I don't recommend continuing until the problem has been cleared out.
link
greyknight17's gravatar image

greyknight17

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1

Asked: 04/07/2011 10:16

Seen: 1418 times

Last updated: 04/17/2011 09:27