Unix Shell - What is the date format for tar --newer

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > January 2007 > What is the date format for tar --newer





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author What is the date format for tar --newer
Mirko

2007-01-25, 1:19 pm

Hello,

I would like to use the --newer option to filter out files for tar-ing
(I am mirroring a directory tree and need to transfer only the newer
files).

Once I do an initial transfer, I create a .time-stamp-file that I know
how to use in tar --newer=. But before the first transfer, that file
does not exist, and I would like to specify a default date, far back in
time, that will guarantee that all the files will get transferred.

I am not very familiar with linux/bash date formats. Also, I am using
cygwin+windows.

Many thanks,

Mirko

Mirko

2007-01-25, 7:24 pm



On Jan 25, 2:13 pm, "Mirko" <mvuko...@nycap.rr.com> wrote:
> Hello,
>
> I would like to use the --newer option to filter out files for tar-ing
> (I am mirroring a directory tree and need to transfer only the newer
> files).
>
> Once I do an initial transfer, I create a .time-stamp-file that I know
> how to use in tar --newer=. But before the first transfer, that file
> does not exist, and I would like to specify a default date, far back in
> time, that will guarantee that all the files will get transferred.
>
> I am not very familiar with linux/bash date formats. Also, I am using
> cygwin+windows.
>


I may have figured it out. I tried Jan 1 1965, and tar did not
complain.

Mirko
> Many thanks,
>
> Mirko


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com