Re: copy all /home direcories to new drive?



On 2006-09-30, J.O. Aho wrote:
No, this will copy the old_sys directory with everything inside it to /home,
not what you want.example: /home/old_sys/tmp /home/old_sys/home and so on...

as a root user:
cp -a /mnt/old_sys/home/* /home/

Wouldn't that omit dot-files? Afaik the shell only expands asterisk to
non-dot-files:

user@host ~ $ mkdir test
user@host ~ $ cd test
user@host ~/test $ touch .dotfile
user@host ~/test $ touch nondotfile
user@host ~/test $ echo *
nondotfile
user@host ~/test $

--
|\_/| ,(Meow) Jesper H. Cheetah <xyborx+usenet@xxxxxxxxx>
(^.^)
`^' Sanity is an illusion
.