Bug 11269
Summary: | "newer" option doesn't work for tar | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Stephen Rasku <redhat> |
Component: | tar | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-05-09 06:49:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Stephen Rasku
2000-05-06 23:42:13 UTC
The problem was occuring because -N uses the "status change time" rather than the "modify time" to do this. (Use ls -lc to see the change time.) From the info file, it is obvious that it was designed to work this way. Whether this is a good decisision is debatable mostly because the default time shown in ls is not the time used for the -N option. However, changing how the options work is a decision that should not be taken lightly and a mis-use of these options fails in a conservative way (i.e. it backs up more files not less). In any case, I include a patch for a change to the man page to be more descriptive about these options. (Is there a better way to attach patches rather than including it in the comments?) I will let the owner close this bug so that they can look at the patch: --- tar113.1 Mon May 8 23:13:46 2000 +++ tar.1 Mon May 8 23:31:50 2000 @@ -69,7 +69,10 @@ .B -M, --multi-volume ] [ -.B -N, --after-date DATE, --newer DATE +.B -N DATE, --after-date DATE, --newer DATE +] +[ +.B --newer-mtime DATE ] [ .B -o, --old-archive, --portability @@ -262,8 +265,12 @@ .B -M, --multi-volume create/list/extract multi-volume archive .TP -.B -N, --after-date DATE, --newer DATE -only store files newer than DATE +.B -N DATE, --after-date DATE, --newer DATE +only store files whose status has changed since DATE +.TP +.B --newer-mtime DATE +only store files whose contents have changed since date. This is the default +date output from 'ls'. .TP .B -o, --old-archive, --portability write a V7 format archive, rather than ANSI format Thanks, done. (Btw: Yes, there is a better way to attach a patch - use the "Create a new attachment" link). I realized that after I submitted the patch. I was having the cookie/login problem, so the option to add a patch was not visible. |