From owner-freebsd-questions@FreeBSD.ORG Sat Dec 7 12:12:58 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8A5FEFD4 for ; Sat, 7 Dec 2013 12:12:58 +0000 (UTC) Received: from nm1-vm5.access.bullet.mail.gq1.yahoo.com (nm1-vm5.access.bullet.mail.gq1.yahoo.com [216.39.63.119]) by mx1.freebsd.org (Postfix) with SMTP id 303901741 for ; Sat, 7 Dec 2013 12:12:57 +0000 (UTC) Received: from [216.39.60.166] by nm1.access.bullet.mail.gq1.yahoo.com with NNFMP; 07 Dec 2013 12:10:27 -0000 Received: from [67.195.23.144] by tm2.access.bullet.mail.gq1.yahoo.com with NNFMP; 07 Dec 2013 12:10:27 -0000 Received: from [127.0.0.1] by smtp116.sbc.mail.gq1.yahoo.com with NNFMP; 07 Dec 2013 12:10:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s1024; t=1386418227; bh=xTSKYCFzd9E3XWgqNq1W8aorS11HdqCkeBTaoyFbDfY=; h=X-Yahoo-Newman-Id:Message-ID:Date:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:From:To:Subject:References; b=fTK1LdeoMlYA3P848aKq1nAWNdVrmAM+pPh3eP3hgql5FypaTItRBVJvUnF00/mq/1RGNKxWTblS7VF7VsMMILNNVnk5jjwsq1i1hoTRlScf0O+M83WGE85Ec6KoPf/Zl9W28qXfCV/Q0wyjfdTBnjHOJGKNYq1BbPTcd2kvW/s= X-Yahoo-Newman-Id: 67426.70063.bm@smtp116.sbc.mail.gq1.yahoo.com Message-ID: <67426.70063.bm@smtp116.sbc.mail.gq1.yahoo.com> Date: Sat, 7 Dec 2013 12:10:27 +0000 (UTC) X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: L0r38N8VM1nXERQpZSjenQZVk8Uf0I6gTDAmlHwbemdfFWV nblc645Qz4kwi27CgPEdnZmdb7EpPfg_6mHxyQI6EiBEVVdr0gpVL50b0pPh UFnsIHEkANuMA4acDET5MIRzCT_s3rgGFYIo9Dbjk.LhIqKmp7EKTMKrQBp1 H2KYA6.I7XYZ3WdDqo6Sae4.qPBnkp1_zEuDMKHnxxTuxxkEv.rN82DDm0ha EaRqGPaFmh4853LmwUCTwnbDAhOQpqgy0S0Lb_F7G3qs0HIeih4ELkR6rVTF So98bFx9zcxvPSycLuJ.CI3QIFUECa02bqRs2iiSb7n4V2VYVF8Si1UukbgA dm9ptxkIJ__5QzT.cq_N0ut7hQ.niqbwREIT_zjRGmbLJbd1JbgmlMcRFBPz nWepiP5eTs4m5KuY0cVdqU2WxK.JVaW5jfn4N4jTcHm.6saFNqoak42vwlj3 1974Vz9F7oYHHivK1kuM8gPtPRuk1rvOhU126wPfIIRZKQ8zWcV4RTPeVU_T M9JzXccaCb_xV4Zenm49pl4p4ddTdYcKL83M.fJJR1M5OHa_m4PEolwnszpu B8ExXiUFF_JWj4w-- X-Yahoo-SMTP: Kz_aW1.swBBYof3zAD7.RWzXz9ZAQVDMml1VADsbgPT4Kq79LC0- X-Rocket-Received: from localhost (mueller6724@96.28.178.143 with ) by smtp116.sbc.mail.gq1.yahoo.com with SMTP; 07 Dec 2013 12:10:27 +0000 UTC From: "Thomas Mueller" To: freebsd-questions@FreeBSD.org Subject: Re: Equivalence to cp -Ru : update References: <20131206195618.899fe8b4e89177f1bd331344@gmail.com> <20131206222407.8468245b.freebsd@edvax.de> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2013 12:12:58 -0000 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