alright I got it.
To make one,
Code:
dd if=/dev/hda(or other drive) | gzip -(1 through 8 with 1 being fastest and 8 having best compresion, --fast =1 --best =8) -c | dd of=~/sambabu/hda.img.gz
and to restore
Code:
xcat ~/sambabu/hda.img.gz | dd of=/dev/hda