rsync command is used to sync a folder data to another folder. I want to know if this command overwrites the entire file and sync or copies only the new file or changed file. Does it prompt if similar name file is found in destination folder??
Specifically, I'm using rsync -rvh /usr/local/aryan/ /usr/local/aryan and it overwrote all the files from local machine to the remote machine. I copied 10 files manually to remote location and then used above rsync command to sync 20 files including first 10 files as well. After rsync -rvh command, I could see all the files in the remote location had same time. It means all the files got overwritten.