That method will overwrite the timestamps of unchanged files on
dir2 though (and it will assume files with different timestamps are different without checking content). The closest I've been able to get is using:
Code:
rsync -rlvzc --delete <src> <dest>
...but this doesn't preserve the timestamps of new/changed files. (Preserving file permissions is unimportant in this instance.) I also tried:
Code:
rsync -rlvzct --delete <src> <dest>
...but this overwrites the timestamps of unchanged files.