Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!unisoft!greywolf From: greywolf@unisoft.UUCP (The Grey Wolf) Newsgroups: comp.unix.questions Subject: Re: "find" and {a,c,m}time Message-ID: <1326@unisoft.UUCP> Date: 13 Oct 88 00:19:05 GMT References: <170@libove.UUCP> Reply-To: greywolf@unisoft.UUCP (The Grey Wolf) Lines: 40 !In article <170@libove.UUCP> root@libove.UUCP (Jay M. Libove) writes: ![ How he uses find for backups... ] !Okay, so "find -?time 3 -print" should find all files ?'d within the !last three days, right? Nope. To wit: [ listing omitted ... explanation below ] !================================================== !As you can see, -mtime 1 included only those files modified in the day !preceeding, and -mtime 2 included only those files modified in the day !preceeding the day preceeding, _not_ files modified within the last two !days. This obviously makes it difficult to use ! !% find . -mtime (epoch_days) | afio ... ! !to back up the filesystem incrementally. For that you use: % find . -mtime +(epoch_days) | afio ... (the + means that it will look at anything older than epoch_days; a - would indicate that it would be looking at things younger than epoch_days). ! ! --- ! ! Jay Libove ARPA: jl42@andrew.cmu.edu or libove@cs.cmu.edu ! 5731 Centre Ave, Apt 3 BITnet: jl42@andrew or jl42@drycas ! Pittsburgh, PA 15206 UUCP: uunet!nfsun!libove!libove or ! (412) 362-8983 UUCP: psuvax1!pitt!darth!libove!libove ! -- -- ** All views expressed herein are my own and not those of UniSoft Corp. ** # Statement: Not Invented Here. My answer: See Figure 1. # # Roan (RO-an) Anderson, UniSoft Corporation, (415) 420-6410 x 168. # # ...sun!unisoft!greywolf # /harley/davidson: Mount device busy.########### # ---- ENTROPY: SORRY, FOLKS, THAT'S THE WAY THE COSMOS CRUMBLES -----