From owner-freebsd-questions@FreeBSD.ORG Tue Jul 15 21:41:37 2003 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 85A4E37B401 for ; Tue, 15 Jul 2003 21:41:37 -0700 (PDT) Received: from post2.inre.asu.edu (post2.inre.asu.edu [129.219.110.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C6443FA3 for ; Tue, 15 Jul 2003 21:41:36 -0700 (PDT) (envelope-from David.Bear@asu.edu) Received: from conversion.post2.inre.asu.edu by asu.edu (PMDF V6.1 #40111) id <0HI300F01P19O9@asu.edu> for freebsd-questions@freebsd.org; Tue, 15 Jul 2003 21:41:34 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) by asu.edu (PMDF V6.1 #40111) with ESMTP id <0HI300E8RP19YA@asu.edu> for freebsd-questions@freebsd.org; Tue, 15 Jul 2003 21:41:33 -0700 (MST) Received: from moroni.pp.asu.edu (moroni.pp.asu.edu [129.219.120.183]) by smtp.asu.edu (8.11.0/8.11.0/asu_smtp_relay,nullclient,tcp_wrapped) with ESMTP id h6G4fWH15194 for ; Tue, 15 Jul 2003 21:41:32 -0700 (MST) Received: (from iddwb@localhost) by moroni.pp.asu.edu (8.11.6/8.11.6) id h6G4fXa21673 for freebsd-questions@freebsd.org; Tue, 15 Jul 2003 21:41:33 -0700 Date: Tue, 15 Jul 2003 21:41:33 -0700 From: David Bear To: freebsd-questions@freebsd.org Message-id: <20030715214133.H18023@asu.edu> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5.1i Subject: getting the mdate of a file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David.Bear@asu.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 04:41:37 -0000 I'd like to run tar using a data incremental. For example, if I run tar today like this: tar cvf /dev/nsa0 /home > home.catalog I end up with a listing of all files tarr'ed in home.catalog. Then the next day I'd like to run tar but only have tar select files that were changed since home.catalog was written. Tar has --newer DATE option but I would like to set the DATE according to the last modified time of the home.catalog. So, question 1 is how do I get the last mod date of a file? Question 2 is, is there a better way that I'm missing? -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"