Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

How to use Ghost to make a back up of your OS

Home

Image to HD

Image to CD

Making a boot disk

Making a bootable CD

Restoring files

Full recovery

Automating with batch files

Tweaking your back ups


Switches

Switches ALL

Splitting huge images

Recovering cloned HDs

Download this site in Adobe Acrobat from

Ghosting.pdf

 

Here we will be discussing the commands you can add to automate your back ups. Commands like

-clone,mode=pdump,src=1:1,dst=D:\backup\back.gho

by using these lines you can bypass the GUI, and get straight to work. you would use these lines in one of two ways. Either by typing it after the ghost.exe, like

Ghost -clone,mode=pdump,src=1:1,dst=D:\backup\back.gho

Or making a batch or text file. We will work on the text file method. Doing it this way allows you to modify the commands easer. Its best if you have at least used the GUI once, so you will have an idea of how this will come together. So I recommend you fist play in the GUI, to get to know your new friend Ghost. Once you feel comfy you can start using commands

. Lets make a simple text file that when called will start ghost with spanning, medium compression, skip some files, and save the images in a pre determined directory. First open notepad, and then type this (you can cut and past if you wish, I will not tell)


-SPLIT=600

-autoname

-z

-skip=@skipa.txt

-clone,mode=pdump,src=1:1,dst=D:\backup\back.gho

 


now save this as a text file, call it backup.txt. Put it in the same directory as Ghost. Now from the DOS prompt type

Ghost @backup.txt

what will happen is Ghost will start up, it will know to split the image in to 600M chunks, it will auto name each chunk, it will compress, it will look for a text file called "Skipa", and read that file to see what files or directories to skip, and finally it will make an image of HD1 partition 1 and save that to D drive, in a directory called backup, and name the images back.XXX. click here to learn more about the skip command. You can remove any of these commands if you don't need them. And you can add others if you want them. Look for a text file called "switches.txt" in the Ghost directory, for a full list of switches. To automate the restore of the image we just made using the above, use this command

-clone,mode=pload,src=D:\backup\back.gho:1,dst=1:1

it tells ghost to restore an image that is stored in "D:\backup", called back.gho to the first HD on partition 1. agin you can make a text file out of this if you want.

 

What can we do with all this? Will remember that simple boot disk. We can turn that in to a custom restore floppy, just like the big guys use. Or even better, make a bootable CD, if your BIOS supports it. How would we make a custom boot disk? Here is an example of a custom boot disk. You can use this to make your boot disk. You may have to modify some parts of it. This is why I used text files and parted it out. It will be simpler for new people just to modify the part they need. I could combine it all in to 2 files. And in fact I have done that. I then made the main file a .COM. the problem was I could not edit it or modify it. Click the next button to see the boot disk.