I am trying to use rsync for back up using this command:
rsync -vaE --progress --delete /source /destination
My goal is to have the destination be an exact copy of the source. I have updated
rsync to 3.1.2 (using homebrew) on my iMac running 10.11.6.
My problem: I use Finder to originally copy
/destination. Using Get Info, I see the size and number of items in source and destination are exact matches. Then I run the rsync command above to ensure destination is an exact match to source, but it rewrites many files (incl resource forks, .DS_Store files, etc) before completing successfully. But if I do another Get Info on source and destination the size and number of items no longer match.
Shouldn't destination be an exact copy of source after rsync, with the same size and number of items, etc? Shouldn't rsync exactly match destination to source, incl resource forks, hidden files, etc.? I am very inexperienced at Terminal and would appreciate any help and guidance.
A further oddity: if I run rsync twice in a row, the second run still finds files to write/rewrite. Why is this? Shouldn't the first run have exactly synchronized the directories?