Bill Shirley wrote:
 
> > > What about (logged as root) :
> > >
> > > cp -a /usr /home2/
> > > mv /usr /usr.bak
> > > ln -svf /home2/usr /usr
> > > rm -rf /usr.bak
> >
> > It is not a good idea to do it with cp. All the files permitions and
> > ownership would be lost.
> > Beside, non regular files would also cause trouble. I would do it like
> > this :
> 
> NOT TRUE.  cp -a copies files and retains their permissions, ownership, and dates 
>correctly.
> It also copies symlinks correctly.  AFAIK, it is the easiest way to do it.
> 
> Bill
> >
> > first make a backup of /home2 in /home/old.home2.tgz and clean /home2
> >    tar cvzpf /home/old.home2.tgz /home2
> >    rm -rf *
> >
> > then transfer files from /usr to /home2
> >   (cd /usr && tar cpf - .) | (cd /home2 && tar xvpf -)
> >

You're right, bill. I didn't know about this '-a' option. But I still
prefer the "tar" version.
I just find it nicer.

Flupke

-- 
        << There's no place like ~! >>

Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to