(Thanks)Re: cp -a

1998-01-28 Thread Ulisses Alonso Camaro
Hi all! I would like to thank everybody who answered my question, I could not reply before cause I'm on exams :-( Cheers, Ulisses -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

Re: cp -a

1998-01-25 Thread Jason Gunthorpe
On Sat, 24 Jan 1998, Brandon Mitchell wrote: > > Weird, I did this not two days ago, cp -avRx /* . and it died on some > > file, I thought it was /dev or a fifo? > > Say "." is /tmp. When you get to copying /tmp, you will get into > recursion with /tmp/tmp being everything that you have copied

Re: cp -a

1998-01-25 Thread Brandon Mitchell
> Weird, I did this not two days ago, cp -avRx /* . and it died on some > file, I thought it was /dev or a fifo? Say "." is /tmp. When you get to copying /tmp, you will get into recursion with /tmp/tmp being everything that you have copied into /tmp including the directory /tmp/tmp which will be

Re: cp -a

1998-01-25 Thread Jason Gunthorpe
On Sun, 25 Jan 1998, Remco Blaakmeer wrote: > > I disagree. > > # cp -ax /dev /tmp > # cd /tmp/dev > # ls -l hda log ttyS0 xconsole > brw-rw 1 root disk 3, 0 Aug 4 20:36 hda > srw-rw-rw- 1 root root0 Jan 24 16:43 log > crw-rw 1 root dialout4,

Re: cp -a

1998-01-25 Thread Remco Blaakmeer
On Sat, 24 Jan 1998, Jason Gunthorpe wrote: > > 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

Re: cp -a

1998-01-25 Thread Jason Gunthorpe
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

Re: cp -a

1998-01-25 Thread Remco Blaakmeer
On Sat, 24 Jan 1998, Santiago Vila Doncel wrote: > -BEGIN PGP SIGNED MESSAGE- > > On Fri, 23 Jan 1998, Ulisses Alonso Camaro wrote: > > I would like to know why cp -aR is not useful to replicate a disk > > Since cp -a [*] is useful to replicate a disk, I think you are really > asking "I

Re: cp -a

1998-01-24 Thread Santiago Vila Doncel
-BEGIN PGP SIGNED MESSAGE- On Fri, 23 Jan 1998, Ulisses Alonso Camaro wrote: > I would like to know why cp -aR is not useful to replicate a disk Since cp -a [*] is useful to replicate a disk, I think you are really asking "I would like to know why some people seem to prefer tar or cpio to