Hello!
I try to create tar archive with files newer than specific date. I use --newer-mtime option.
Man says:
But when I use --newer-mtime '2 days ago' - tar creates empty archive.
When I use --newer-mtime '2012-11-19' or --newer-mtime '`date -v -1d`' tar starts to add all files to archive.
Also I've tried "--newer-mtime='2 days ago'", "--newer-mtime='2012-11-19'", "--newer-mtime='`date -v -1d`'"
Result is same - "--newer-mtime" does not work (or works differently...)
Tell me please - what is wrong? Me, my date specification or tar?
I try to create tar archive with files newer than specific date. I use --newer-mtime option.
Man says:
Code:
"The --newer and --newer-mtime switches accept a variety of common date
and time specifications, including ``12 Mar 2005 7:14:29pm'',
``2005-03-12 19:14'', ``5 minutes ago'', and ``19:14 PST May 1''."
But when I use --newer-mtime '2 days ago' - tar creates empty archive.
When I use --newer-mtime '2012-11-19' or --newer-mtime '`date -v -1d`' tar starts to add all files to archive.
Also I've tried "--newer-mtime='2 days ago'", "--newer-mtime='2012-11-19'", "--newer-mtime='`date -v -1d`'"
Result is same - "--newer-mtime" does not work (or works differently...)
Tell me please - what is wrong? Me, my date specification or tar?