Bug 10603 - rsync between local folder and mounted nfs folder sometimes overwrites newer files
Summary: rsync between local folder and mounted nfs folder sometimes overwrites newer ...
Status: RESOLVED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.9
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-09 23:10 UTC by Jeff Davies
Modified: 2014-05-10 08:29 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 Jeff Davies 2014-05-09 23:10:44 UTC
Not sure of the core reason here but perhaps a network problem causes an unhandled exception that allows rsync to think the older file should overwrite the newer file.
My OS is Ubuntu 13.10
rsync 3.0.9 

command used is the same as in the man page.
rsync -avz src dest

Most of the time seemed to work fine, just occasionally not.
Unfortunately the "occasionally not" wiped a couple of days of email.
Comment 1 Kevin Korb 2014-05-09 23:16:14 UTC
It is supposed to do that unless you supply --update.
Comment 2 Kevin Korb 2014-05-09 23:16:41 UTC
Oh, also, don't -z unless rsync is networking.
Comment 3 Wayne Davison 2014-05-10 05:59:42 UTC
As noted earlier, the cited command should just copy everything, as it did.
Comment 4 Jeff Davies 2014-05-10 08:29:44 UTC
Of course. For some reason I thought -a included -u behaviour.
Perhaps suggest adding -u to the example on the man page? I know it isn't wrong, but may be more what people want to do?

     "....ing commands copies the files in the same way, including their  setting
     of the attributes of /dest/foo:

              rsync -av /src/foo /dest
              rsync -av /src/foo/ /dest/foo   "


I know the -z doesn't do anything in filesystem to filesystem.

Thanks folks.