Mailing List Archive


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

Re: [tlug] File change info on upload to server



On Fri, Apr 11, 2008 at 4:34 PM, Charles Muller
<cmuller-lst@example.com> wrote:
> > This looks fine.  The only functionality which may be missing would be a
> > way to automatically know whether a file has changed without having to
> > download the whole file.

Suppose that your cronjob runs weekly. This command will list all the
*files* that has changed
in the last  *7 days*.

find . -type f -mtime -7

and archive it if you need:

find . -type f -mtime -7 | xargs tar -rf weekly_incremental.`date -I`.tar

-- 
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
vuhung16plus{remove}@example.com , YIM: vuhung16
Japan through an eye of a gaijin:
http://www.flickr.com/photos/vuhung/tags/fav/

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links