> rsync server::images/$IP.imag /dev/hda1
> but this don't work, or did it?
it won't work.
rsync needs a temporary file to put the new data in then it does a
rename once complete. This is necessary as rsync needs access to the
old data while creating the new file.
in theory rsync could so this:
rsync /dev/hda1 server::images/image.dat
you would just need a little patch adding an option for devices
similar to the option that treats symlinks as files.
I suppose we could combine the --temp-dir option with some special
handling of devices and copy the image onto the device at the end, but
I'm not sure anyone would actually want to use it that way.