[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cp -a



On Sun, 25 Jan 1998, Remco Blaakmeer wrote:

> > cd /
> > mount /dev/somedisk /mnt
> > cp -a * /mnt
> > 
> > See the mess? ( /mnt/mnt/mnt/... )
> 
> You could add the -x switch. This skips subdirectories that are not on the
> same filesystem as the directories you are copying.
> 
> cp -ax / /mnt

Trouble is that cp -ax will not copy /dev it treats them as normal files,
it might also have problems with fifos and sockets..

tar -cl / | tar -x /mnt

Doesn't have these problems though

Jason


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: