Monday, March 24, 2008

Linux filesystem cloning

Using rsync. The resulting filesystem booted but didn't allow logging in, probably some permissions or ownership info got lost in translation:

http://www.seismo.ethz.ch/linux/rsync.html



Using nc and tar, didn't work out too well (it was interrupted by 'unexpected EOF' messages):

http://wiki.clug.org.za/wiki/How_do_I_clone_my_disks_with_Linux%3F




Using dump and ssh. This one does the trick:

http://tldp.org/linuxfocus/English/Archives/lf-2005_03-0370.pdf

Summarizing:

mount /dev/xxx /mnt
cd /mnt
ssh sourcePC 'dump −0 −f − /' | restore −r −f −


No comments: