Re: copy all /home direcories to new drive?
- From: "Jesper H. Cheetah" <xyborx+usenet@xxxxxxxxx>
- Date: Sat, 30 Sep 2006 22:23:16 +0200
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
.
- Follow-Ups:
- Re: copy all /home direcories to new drive?
- From: Johan Lindquist
- Re: copy all /home direcories to new drive?
- References:
- copy all /home direcories to new drive?
- From: Ohmster
- Re: copy all /home direcories to new drive?
- From: J.O. Aho
- copy all /home direcories to new drive?
- Prev by Date: Dan's Guardian
- Next by Date: Re: Dan's Guardian
- Previous by thread: Re: copy all /home direcories to new drive?
- Next by thread: Re: copy all /home direcories to new drive?
- Index(es):