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. Tnx David for the info on that, however, there is one thing I have learnt over the years with backups and that is to never put them into a compressed file, an archive file as to get back at that data you then need to decompress and invariably have the same disk space you had on
man tar for the specifics of the switches. This *should* copy all files (dot-files included) to the new partition, preserving ownership/permissions When ever I see *should* I immediately think of the , in theory term and might. What I am looking for is a definite cp of data, not a might copy
David Herman wrote: the original master drive. No I only do a copy of the files and the directories. That way if I need a specific document before I get the master HDD up, I can get to it without having extra hassle. the data. No offense to you, but I had to ramble on a bit. :) -- The Little Helper ======================================================================== Hylton Conacher - Licenced ex-Windows user (apart from Quicken) Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================