Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2013 12:10:27 +0000 (UTC)
From:      "Thomas Mueller" <mueller6724@bellsouth.net>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: Equivalence to cp -Ru : update
Message-ID:  <67426.70063.bm@smtp116.sbc.mail.gq1.yahoo.com>
References:  <20131206195618.899fe8b4e89177f1bd331344@gmail.com> <20131206222407.8468245b.freebsd@edvax.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, 6 Dec 2013 19:56:18 +0100, Daniel Patón wrote:
> In Linux I used the following command in bash on an external USB disk:

> cp -Ru * /media/BACKUP

> Now in FreeBSD with csh the command cp is a little different.

I asked about the same question some months ago, having used cp -Rpu in Linux (p preserves permissions).

Best answer I got then was rsync.

I see Polytropon's suggestion, cpdup, is much smaller.

I find cpdup in FreeBSD ports but not NetBSD pkgsrc.

I just found a reason why rsync might be preferable, just in the past few hours, 
from Bruce Hill on one Gentoo Linux emailing list (gentoo-user@lists.gentoo.org):

   There are reasons why rsync is better than cp. The best one IMO is that rysnc
   will not copy a corrupt file, while cp will. And rsync will tell you about the
   corrupt file.

   You have so many questions about rsync, and different opinions thrown at you.
   Why do you not read "man rsync" and learn about it? This man page is thorough,
   easy to read, and explains it's usage by examples.


Tom




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?67426.70063.bm>