[NTLUG:Discuss] tar with -N option still picking up old files
Val Harris
valwharris at verizon.net
Thu Mar 26 14:47:46 CDT 2009
Neil Aggarwal wrote:
> Hello:
>
> I tried this command to tar up a set of data files
> updated since yesterday (The data directory contains
> multiple files with varying dates):
>
> /bin/tar -z -c -N 20090325 -f /tmp/test.tgz data
>
> When I look at the content of the test.tgz file,
> it looks like it copied the content of the entire
> directory, not just the newer files.
>
> Any ideas?
>
> Thanks,
> Neil
>
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details.
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
If your distro is using GNU tar, I don't think that is a valid date.
See: http://www.gnu.org/software/tar/manual/index.html
IHTH,
--
Val W. Harris valwharris at verizon.net
"If you have tried to do something but couldn't,
you are far better off than if you tried to do
nothing and succeeded" - John T. Ragland, Jr.
More information about the Discuss
mailing list