From owner-freebsd-questions@FreeBSD.ORG Fri Dec 6 21:24:25 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 4E6CD75C for ; Fri, 6 Dec 2013 21:24:25 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0D77211CF for ; Fri, 6 Dec 2013 21:24:24 +0000 (UTC) Received: from r56.edvax.de (port-92-195-106-241.dynamic.qsc.de [92.195.106.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 8A46C276E3; Fri, 6 Dec 2013 22:24:22 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id rB6LO7dK003532; Fri, 6 Dec 2013 22:24:07 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 6 Dec 2013 22:24:07 +0100 From: Polytropon To: Daniel =?ISO-8859-1?Q?Pat=F3n?= Subject: Re: Equivalence to cp -Ru Message-Id: <20131206222407.8468245b.freebsd@edvax.de> In-Reply-To: <20131206195618.899fe8b4e89177f1bd331344@gmail.com> References: <20131206195618.899fe8b4e89177f1bd331344@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2013 21:24:25 -0000 On Fri, 6 Dec 2013 19:56:18 +0100, Daniel Pat=F3n wrote: > In Linux I used the following command in bash on an external USB disk: >=20 > cp -Ru * /media/BACKUP >=20 > Now in FreeBSD with csh the command cp is a little different.=20 This has nothing to do with the C shell, as /bin/cp is an external command (binary). :-) > Is there any equivalence to cp -Ru that only copy the newest > files of my laptop to external disk? I'd suggest using cpdup from the ports collection. It can handle the described scenario very well (and flexible, if required). > cp -a ? This is equivelant to cp -RpP: recursive, preserve certain attributes, do not follow symlinks. See "man cp" for details. Linux cp's -u (--update) does not have a direct equivalent. Try cpdup. :-) --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...