From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.43)
	id 1E4MIa-00013y-On
	for garchives@archives.gentoo.org; Sun, 14 Aug 2005 17:29:29 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7EHRkIq018605;
	Sun, 14 Aug 2005 17:27:46 GMT
Received: from smtp2.iway.na (smtp2.iway.na [196.44.136.4])
	by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7EHKv6E009919
	for <gentoo-user@lists.gentoo.org>; Sun, 14 Aug 2005 17:20:58 GMT
Received: from vscan.iway.na ([196.44.136.13]) by smtp2.iway.na
          (Netscape Messaging Server 4.15) with ESMTP id IL85LY03.A2S for
          <gentoo-user@lists.gentoo.org>; Sun, 14 Aug 2005 18:20:22 +0000 
Received: from mx2.iway.na ([196.44.136.13]) by vscan.iway.na
          (Netscape Messaging Server 4.15) with ESMTP id IL82VC01.3OC for
          <gentoo-user@lists.gentoo.org>; Sun, 14 Aug 2005 18:21:12 +0100 
Received: from uwix.alt.na ([196.44.132.142]) by mx2.iway.na
          (Netscape Messaging Server 4.15) with ESMTP id IL82VD03.22D for
          <gentoo-user@lists.gentoo.org>; Sun, 14 Aug 2005 18:21:13 +0100 
Received: from uwe by uwix.alt.na with local (Exim 4.50)
	id 1E4Lym-0001Jd-UU
	for gentoo-user@lists.gentoo.org; Sun, 14 Aug 2005 18:09:00 +0100
From: Uwe Thiem <uwix@iway.na>
Organization: SysEx (Pty) Ltd.
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Way OT - date listed for a directory in ls -l
Date: Sun, 14 Aug 2005 18:09:00 +0100
User-Agent: KMail/1.8.1
References: <1124034702.11694.8.camel@baby.espersunited.com>
In-Reply-To: <1124034702.11694.8.camel@baby.espersunited.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200508141809.00394.uwix@iway.na>
Sender: Uwe Thiem <uwix@iway.na>
X-Archives-Salt: 82e2f8d7-1e34-408e-b5ff-beeed6ecc7ab
X-Archives-Hash: 15e5b4f355d6f598f6e7394ba01da50e

On 14 August 2005 16:51, Michael Sullivan wrote:
> Under what condition is the date of a directory (shown with ls -l)
> updated?  Is it when the directory is created, or when a file somewhere
> below the directory is updated or some other time?  I make weekly
> backups of the user accounts on my server box.  Because space and CD
> media are in limited supply (at least for me) I write the backups to CD
> once a month.  Full backups are made on Sunday and after a new Sunday's
> backup has been made I edit the previous Sunday's backup and delete all
> files that hadn't been changed recently when that backup (the one I'm
> editing) was made.  This is a somewhat time-consuming method.  I was
> just wondering if the directory date could give me a clue as to the date
> of the most recent file updated under that directory...

Not really. The timestamp is changed when the directory itself (not it's 
content) is written to. Creating a file in that directory (but not in a 
subdirectory of it) changes it. Same for removing a file or renaming it.

Uwe

-- 
95% of all programmers rate themselves among the top 5% of all software 
developers. - Linus Torvalds

http://www.uwix.iway.na (last updated: 20.06.2004)
-- 
gentoo-user@gentoo.org mailing list