Clonezilla is wonderfull software. At work we use it daily to image laptops. We have a windows PC with a big hard drive, and that is shared via samba.
Because we image an average of 10 laptops every morning, I decided to customize the script. So together with a colleague we made a script which automaticly grabs our latest image from the share and restores it.
Our images are named schoon#.
It restores the image to /dev/sda. But you can change the clonezilla command.
Make sure your share is writable.
It gets network from dhcp on eth0.
So, the steps to get the script in clonezilla:
Install the squashfs-tools for your distro, this is important.
Unetbootin the ISO to a USB. Copy the files to a dir on your pc and open a terminal in the dir. Then do this:
Now make a dir in de squashfs-root. Put the scripts in there, change them or not, and chmod them so that they are executable.
Don't forget to change the path in the launcher script, else it won't work.
Now make it back to a life system:
And change the syslinux.cfg so that the paths are correct if you changed them:
Now, here are the scripts:
backup-schoon.sh (this makes a backup image)
restore-schoon.sh (this restores the image)
start.sh (bootstrapper for backup script)
startr.sh (bootstrapper for restore script)
Note that this is all on your own risk, no warranty or purpose for any target and all the regular bla-bla.
Good luck with the scripts and clonezilla!