rsync deletes files that should't be

Viewed 12

here is my command:

rsync -avPh --stats --delete-during --ignore-errors --modify-window=1  "$HOME/Folder1/" "$HOME/Folder2

So it syncs the whole content of Folder1 into Folder2. It works fine, but there are some weirdness for some files. They're deleted, and then copied again. If I run the command again right away, there is no error. If I do it like 2 minutes later, I have the same thing: they're deleted and copied again, even if I didn't touch those files in Folder1. I expect that nothing would be deleted or copied if those two folders are already synced...

Any idea where the problem could come from?

0 Answers
Related