From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 11:00:38 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD2FF106564A for ; Wed, 11 Jan 2012 11:00:38 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp2.insight.synacor.com [208.47.185.24]) by mx1.freebsd.org (Postfix) with ESMTP id 936EF8FC16 for ; Wed, 11 Jan 2012 11:00:38 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=+HEK7M6xp8ZnBm2DlbHgvwcoDJ7NMQUcqKq19O6BEpY= c=1 sm=0 a=sVq0qkIrR4EA:10 a=jLN7EqiLvroA:10 a=uLQmz6_b1zdLV7foa-cA:9 a=Q/oqmR4JO1zR3vNQamCQeQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Authentication-Results: smtp02.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Received-SPF: softfail (smtp02.insight.synacor.com: transitional domain insightbb.com does not designate 74.134.26.53 as permitted sender) Received: from [74.134.26.53] ([74.134.26.53:54056] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id 76/DE-27130-5DB6D0F4; Wed, 11 Jan 2012 06:00:38 -0500 Date: Wed, 11 Jan 2012 06:00:37 -0500 Message-ID: <76.DE.27130.5DB6D0F4@smtp02.insight.synacor.com> From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: BSD equivalent of GNU/Linux cp -rpu ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 11:00:38 -0000 What is the BSD equivalent of Linux cp -rpu ? I tried that in FreeBSD, or maybe it was NetBSD, and -u was not recognized. I think the issue would be differences between GNU/Linux coreutils and util-linux and the BSD counterparts. the -u flag, for update, means not to copy files that exist in both the source and destination unless the source version is newer. Idea is to backup a directory, recursively, without copying old files that haven't changed. Would I use something like rsync or pax ? Tom