On 29May2006 09:33, Chad Martin <[EMAIL PROTECTED]> wrote:
| Mark Jensen wrote:
| >>Note that cp won't work, as it will miss all the hidden files.
| > 
| > Funny, but I used cp -ax to copy over my home earlier this year, and it 
| > worked flawlessly.
| 
| Really?  It got all your .bashrc, .bash_profile, .xmms, and all that?
| Last time I checked cp -a * will not pick up anything that matches .*
| I've had to use tar to make the transfer.

Yep. DON'T USE "*" !! Compare your way:

        mkdir /path/to/new/home
        cp -rp /your/home/* /path/to/new/home/.

which uses the * to get filenames, and which explicitly does not match
"." files, versus:

        cp -rp /your/home /path/to/new/home

which doesn't bother with enumerating your files on the command line.
Just point at the top directory and copy everything.

It is both complete and easier!

The same with your tar incantations.

BTW, often there will not be room to make a distinct tar file
for the copy. It is easier (and faster!) to go:

        mkdir /path/to/new/home
        ( cd /your/home
          tar cf - .
        ) | ( cd /path/to/new/home
              tar xf -
            )

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

Sam Jones <[EMAIL PROTECTED]> on the Nine Types of User:

Princess (unfair, perhaps, as these tend, overwhelmingly, to be males) -
                "I need a Mac, and someone's got the one I like reserved,
                would you please garrote him and put him in the paper
                recycling bin?"
Advantages:     Flatters you with their high standards for your service.
Disadvantages:  Impresses you with their obliviousness to other people on
                this planet.
Symptoms:       Inability to communicate except by complaining.
Real Case:      One asked a scon to remove the message of the day because he
                (the user) didn't like it.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/0XFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to