Re: automatic overwrite with cp

2003-08-26 Thread Johann Koenig
On Mon, 25 Aug 2003 20:20:49 +0200
alex [EMAIL PROTECTED] wrote:

 I've been trying to copy the contents of a partition  (source)  to 
 another partition  (destination) that has a large number
 of files that need to be overwritten.   The command I've tried is:
 
  # cp -apRv  source/* /destination/
 
 The command works but it requires that I manually respond 'yes' for
 each overwrite.  I thought that the r or R option
 would do an automatic overwrite but apparently it doesn't.
 
 What should the option be to do automatic overwrites with the ' cp ' 
 command?

man cp
/-f
-- 
-johann koenig
Now Playing: Goldie - Dragonfly : Saturnz Return (Disc 2 - Saturn)
Today is Boomtime, the 18th day of Bureaucracy in the YOLD 3169
My public pgp key: http://mental-graffiti.com/pgp/johannkoenig.pgp


pgp0.pgp
Description: PGP signature


Re: automatic overwrite with cp

2003-08-26 Thread Roberto Sanchez
 --- alex [EMAIL PROTECTED] escribió: 
 I've been trying to copy the contents of a partition  (source)  to 
 another partition  (destination) that has a large number
 of files that need to be overwritten.   The command I've tried is:
 
  # cp -apRv  source/* /destination/
 
 The command works but it requires that I manually respond 'yes' for each 
 overwrite.  I thought that the r or R option
 would do an automatic overwrite but apparently it doesn't.
 
 What should the option be to do automatic overwrites with the ' cp ' 
 command?
 

add --reply=yes (it's in the man page).

-Roberto

___
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: automatic overwrite with cp

2003-08-26 Thread Andrew Perrin
Or, alternatively:

yes | cp -apRv source/* /destination/



--
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
[EMAIL PROTECTED] * andrew_perrin (at) unc.edu


On Tue, 26 Aug 2003, [iso-8859-1] Roberto Sanchez wrote:

  --- alex [EMAIL PROTECTED] escribió:
  I've been trying to copy the contents of a partition  (source)  to
  another partition  (destination) that has a large number
  of files that need to be overwritten.   The command I've tried is:
 
   # cp -apRv  source/* /destination/
 
  The command works but it requires that I manually respond 'yes' for each
  overwrite.  I thought that the r or R option
  would do an automatic overwrite but apparently it doesn't.
 
  What should the option be to do automatic overwrites with the ' cp '
  command?
 

 add --reply=yes (it's in the man page).

 -Roberto

 ___
 Yahoo! Messenger - Nueva versión GRATIS
 Super Webcam, voz, caritas animadas, y más...
 http://messenger.yahoo.es


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: automatic overwrite with cp

2003-08-26 Thread Kevin McKinley
On Mon, 25 Aug 2003 20:20:49 +0200
alex [EMAIL PROTECTED] wrote:

 I've been trying to copy the contents of a partition  (source)  to 
 another partition  (destination) that has a large number
 of files that need to be overwritten.   The command I've tried is:
 
  # cp -apRv  source/* /destination/
 
 The command works but it requires that I manually respond 'yes' for each 
 overwrite.  I thought that the r or R option
 would do an automatic overwrite but apparently it doesn't.
 
 What should the option be to do automatic overwrites with the ' cp ' 
 command?

If you anticipate the need to do this more than once, I suggest looking into
rsync.

Kevin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: automatic overwrite with cp

2003-08-26 Thread Colin Watson
On Mon, Aug 25, 2003 at 08:20:49PM +0200, alex wrote:
 I've been trying to copy the contents of a partition  (source)  to 
 another partition  (destination) that has a large number
 of files that need to be overwritten.   The command I've tried is:
 
 # cp -apRv  source/* /destination/
 
 The command works but it requires that I manually respond 'yes' for each 
 overwrite.

Use the -f option.

Cheers,

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: automatic overwrite with cp

2003-08-26 Thread alex
Roberto Sanchez wrote:

--- alex [EMAIL PROTECTED] escribió: 
 

I've been trying to copy the contents of a partition  (source)  to 
another partition  (destination) that has a large number
of files that need to be overwritten.   The command I've tried is:

# cp -apRv  source/* /destination/

The command works but it requires that I manually respond 'yes' for each 
overwrite.  I thought that the r or R option
would do an automatic overwrite but apparently it doesn't.

What should the option be to do automatic overwrites with the ' cp ' 
command?

   

add --reply=yes (it's in the man page).

-Roberto

___
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
 

Beautiful!   It works very nicely.I used  cp  -apfv  --reply=y 
source/* destination.

I wasn't aware that there was such  a command in man.

The story is I installed a new hard drive  for a friend and installed 
Windows 98 and used the old hard drive
Win98 as a source and copied the entire old Win98 partition to the new 
Win98 partition.   I installed KNOPPIX in
the new drive and used it to do the copy.  My friend now is now becoming 
a Debian fan..

Thank you Roberto
has  KNOPPIX  in his new hard drive


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: automatic overwrite with cp

2003-08-26 Thread alex
Thanks for the other suggestions.   I had already started the copy so I 
didn't receive the last few messages until
the copy was completed but will note them in my handydandy notebook
.

alex wrote:

I've been trying to copy the contents of a partition  (source)  to 
another partition  (destination) that has a large number
of files that need to be overwritten.   The command I've tried is:

# cp -apRv  source/* /destination/

The command works but it requires that I manually respond 'yes' for 
each overwrite.  I thought that the r or R option
would do an automatic overwrite but apparently it doesn't.

What should the option be to do automatic overwrites with the ' cp ' 
command?




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]