public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Way OT - date listed for a directory in ls -l
@ 2005-08-14 15:51 Michael Sullivan
  2005-08-14 16:23 ` Neil Bothwick
  2005-08-14 17:09 ` Uwe Thiem
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Sullivan @ 2005-08-14 15:51 UTC (permalink / raw
  To: gentoo-user

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...

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Way OT - date listed for a directory in ls -l
  2005-08-14 15:51 [gentoo-user] Way OT - date listed for a directory in ls -l Michael Sullivan
@ 2005-08-14 16:23 ` Neil Bothwick
  2005-08-14 17:09 ` Uwe Thiem
  1 sibling, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2005-08-14 16:23 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

On Sun, 14 Aug 2005 10:51:41 -0500, 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...

Try rdiff-backup, it does more or less what you are doing manually,
without all the hassle or potential for error.


-- 
Neil Bothwick

"They that can give up essential liberty to obtain a little
temporary safety, deserve neither liberty nor safety."
    Benjamin Franklin

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Way OT - date listed for a directory in ls -l
  2005-08-14 15:51 [gentoo-user] Way OT - date listed for a directory in ls -l Michael Sullivan
  2005-08-14 16:23 ` Neil Bothwick
@ 2005-08-14 17:09 ` Uwe Thiem
  2005-08-14 18:56   ` Michael Sullivan
  1 sibling, 1 reply; 4+ messages in thread
From: Uwe Thiem @ 2005-08-14 17:09 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Way OT - date listed for a directory in ls -l
  2005-08-14 17:09 ` Uwe Thiem
@ 2005-08-14 18:56   ` Michael Sullivan
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Sullivan @ 2005-08-14 18:56 UTC (permalink / raw
  To: gentoo-user

On Sun, 2005-08-14 at 18:09 +0100, Uwe Thiem wrote:
> 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)

Thank you.  That is what I wanted to know. :)
-Michael Sullivan-

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-14 19:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-14 15:51 [gentoo-user] Way OT - date listed for a directory in ls -l Michael Sullivan
2005-08-14 16:23 ` Neil Bothwick
2005-08-14 17:09 ` Uwe Thiem
2005-08-14 18:56   ` Michael Sullivan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox