From owner-freebsd-questions@FreeBSD.ORG Mon Aug 23 17:00:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2916416A4CE for ; Mon, 23 Aug 2004 17:00:11 +0000 (GMT) Received: from beastie.flncs.com (ns1.flncs.com [204.0.142.254]) by mx1.FreeBSD.org (Postfix) with SMTP id 4D62343D1F for ; Mon, 23 Aug 2004 17:00:10 +0000 (GMT) (envelope-from moti@flncs.com) Received: (qmail 65995 invoked by uid 89); 23 Aug 2004 17:00:09 -0000 Received: from localhost.flncs.com (HELO ?127.0.0.1?) (moti@flncs.com@127.0.0.1) by beastie.flncs.com with SMTP; 23 Aug 2004 17:00:09 -0000 Message-ID: <412A2293.9090808@flncs.com> Date: Mon, 23 Aug 2004 13:00:03 -0400 From: Moti Levy User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "W. D." References: <5.1.0.14.2.20040823115109.04717ec0@209.152.117.178> In-Reply-To: <5.1.0.14.2.20040823115109.04717ec0@209.152.117.178> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: Copy all files and subdirectories preserving time stamp? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2004 17:00:11 -0000 W. D. wrote: >Hi folks, > >What would be the way to copy all files and subdirectories >from one directory to another--preserving the time stamp >and other attributes? > >It seems that 'cp' usually puts a time stamp of the >current date and time. > >Would this work? > >cp -r -p -@ /some/source/directory/* /some/target/directory/ > > > >Thanks for your help! > >Start Here to Find It Fast!™ -> http://www.US-Webmasters.com/best-start-page/ >$8.77 Domain Names -> http://domains.us-webmasters.com/ > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > try using tar , cd /some/source/directory/ tar cfP - *|(cd /some/target/directory/ ; tar xfP - )