Re: automatic overwrite with cp
On Mon, 25 Aug 2003 20:20:49 +0200
alex <radsky@ncia.net> 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
Reply to: