-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 14 March 2004 12:04 pm, Dylan wrote:
On Sunday 14 March 2004 14:58 pm, Hylton Conacher (ZR1HPC) wrote:
I have a system with 2 HDD's, namely a 20Gb and a 7.5Gb HDD.
What I would like to do is copy an exact replica of /home and /etc and all of their contents from the 20Gb to the 7.5Gb.
My method follows (thanks to another list member, John Clausen) create a directory on your second drive and mount it (for example /dev/hda2 mounted as /home2) as root # cd /home # tar cSpf - . | (cd /home2 ; tar xvSpf - ) This will give you the same permissions and directory structure within /home2 as exists in /home. You get the idea. man tar for the specifics of the switches. This *should* copy all files (dot-files included) to the new partition, preserving ownership/permissions Hope this helps - -- dh Don't shop at GoogleGear.com! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAVPTqBwgxlylUsJARApj0AJ4zZQQbmbayEr352XuzGkBODzJg4QCeLUhK xpp1hlc25R8U8CIl6t+fQ5w= =dB6Q -----END PGP SIGNATURE-----