Change tar to GNU

Maxime Henrion mux at FreeBSD.org
Fri Feb 18 18:00:40 GMT 2005


Tim Kientzle wrote:
> Tim Kientzle wrote:
> >Kaspars wrote:
> >
> >>
> >>I have backup script build with tar and -newer options.
> >>on FreeBSD 5.3 not working and I found:
> >>$tar --version
> >>bsdtar 1.01.011, libarchive 1.01.013
> >>Copyright (C) 2003-2004 Tim Kientzle
> 
> --newer would be simple to add if I
> could crib some date/time parsing code.
> 
> Anyone know a good place to steal that from? ;-)

Everytime I had to do something similar, I found that the standard
strptime() and strftime() functions were doing the job perfectly.  Not
sure if that's advisable in your case though.

Hope that helps,
Maxime


More information about the freebsd-current mailing list