I have been testing rsync and found a weird bug when copying files and folders from a partition to another:
If I do this:
rsync -avE --delete '/Volumes/disk1/origin/' '/Volumes/disk2/destination/'
It copies/syncronizes correctly.
The next time I use rsync for the same syncronization, some modification dates in files (not folders!) become incorrect (are changed to the current date and time), even though I have used the -a in the rsync command which should preserve it.
The most weird thing is that if I redo it, the dates that were wrong are correct now, which means rsync is changing the modification dates every second time it is run, and when it changes the dates, it is always to the same files, I don't see a pattern other than just affecting files and the same files.
What am I doing wrong and can this be fixed?
This is with OS X 10.9.5, using the terminal, rsync 2.6.9
-avE? – jackJoe Jun 16 '15 at 17:42access-modification-creation-birthtime. In Finder terms birthtime is creation time. An initial run ofrsync -av SOURCE DESTINATIONpreserves access modification and birthtime- creation time becomes the time rsync created the inode. If files are modified in the SOURCE folder on the next run ofrsyncthe birthtime of the DESTINATION file is changed to the creation time of the SOURCE file. - OS X 10.6, 64bit with rsync 3.1.1. I think this is an issue with OS X not rsync, will look in to it further. – fd0 Jun 18 '15 at 12:08