Bug 6927 - Add a --fat option to ignore 1-second time diffs, ownership, hard links, symlinks, etc.
Add a --fat option to ignore 1-second time diffs, ownership, hard links, syml...
Status: RESOLVED WONTFIX
Product: rsync
Classification: Unclassified
Component: core
3.1.0
All All
: P3 enhancement
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-24 22:09 UTC by Jason Spiro
Modified: 2011-12-24 20:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Spiro 2009-11-24 22:09:08 UTC
Please add a --fat option to rsync.  This option should cause the following:

*  Rsync should ignore files whose times differ by one second
*  Maybe it should also ignore files whose times differ by exactly 3600 or 3601 seconds too.  This would help when rsyncing files created near the time of the daylight savings time switchover.
*  Ignore ownership, hard links, symlinks, etc.  This will reduce useless errors shown.  Also it will prevent rsync returning an error exit code when nothing bad actually happened.

Please credit Kevin Kolb <http://www.sanitarium.net; email hidden to prevent spam> in your ChangeLog if you implement this.  He came up with most of the ideas above.  You can also credit me, Jason Spiro <http://www.jspiro.com>, if you like.
Comment 1 Jason Spiro 2009-11-24 22:20:10 UTC
Typo.  I meant "Please credit Kevin Korb <http://www.sanitarium.net; email hidden to prevent spam>".  That's Korb with a letter "r".  Kevin, I apologize for that.
Comment 2 Matt McCutchen 2009-11-28 00:20:59 UTC
This could probably be implemented as a popt alias rather than in the rsync program itself.  Some specific comments:

(In reply to comment #0)
> *  Maybe it should also ignore files whose times differ by exactly 3600 or 3601
> seconds too.  This would help when rsyncing files created near the time of the
> daylight savings time switchover.

That is a hack.

> *  Ignore ownership, hard links, symlinks, etc.  This will reduce useless
> errors shown.  Also it will prevent rsync returning an error exit code when
> nothing bad actually happened.

Realize that the default is to ignore all of those things, so their inclusion in --fat would be useful only to override -a.  Some people seem to get in the habit of using -a all the time regardless of whether they really want the options it contains.

I'm not interested in having --fat in the main version of rsync, but the decision is Wayne's.
Comment 3 Wayne Davison 2011-12-24 20:49:47 UTC
I personally would recommend users that want this add their own popt alias to their ~/.popt (or /etc/popt) file.  e.g.:

rsync alias --fat --modify-window=1 --no-o --no-g --no-H --no-l

That would let you use:

rsync -aiv --fat foo bar

(Which makes the --no-* overrides turn things off in -a since --fat follows -a.)  That doesn't do anything for the DST glitch, but I don't think rsync should try to solve that issue.