Hi,
I'm trying to make 'tar' only add files after a certain date for a backup purpose. However, it doesn't do what I want:
Code:
$ tar --after-date=2011-07-03 -c -v -z -f ../arch.tar.gz .
tar: Option --after-date: Treating date `2011-07-03' as 2011-07-03 00:00:00
./
./someFile
./someOtherFile
[...]
$ ll someFile
-rwxrwxrwx 2 root root 16896 2009-02-07 18:12 someFile
$
I'm using --after-date, the short for this option is -N.
The warning for --after-date shows that the program really identifies the option and the date.
...so, even though the date of someFile is before my specified date, it is added to the archive. Why?
(The disk I'm running this on has a NTFS file system. And yes, I would need to run this on that partition without copying the files to an ext partition first. Should be possible, and I don't think that's the problem, just wanted to mention it.)
Tanks,
Carl