bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script using file dates


From: Bob Proulx
Subject: Re: script using file dates
Date: Wed, 15 Aug 2007 11:32:41 -0600
User-agent: Mutt/1.5.9i

warnockm wrote:
> I'm looking for an exisiting script, or a command to help w/ processing files
> by date.  I have a test website and need to upload only the files that have
> been changed since the last upload.

This sounds like the perfect application for use of rsync.

> I'm thinking of creating a file list and the date of the last
> upload.  if the modified date is after the date in this file, it
> would upload.  Has anyone seen a script to do this?  i found "test
> -nt" and "test -ot" but this is to compare two file dates, not a
> file to a stored date.  ideas?  thanks

Using 'rsync' would be best for this.  If that is not possible then
look at using 'find' to generate a list of files later (-newer) than a
particular timestamp file.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]