Date: Tue, 15 Jul 2003 21:41:33 -0700 From: David Bear <David.Bear@asu.edu> To: freebsd-questions@freebsd.org Subject: getting the mdate of a file Message-ID: <20030715214133.H18023@asu.edu>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030715214133.H18023>