i use rsync -avh

I just want to know that if the file on destination already exists does the rsync overwrite the new file or not

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

If the file contents are the same, then no; it will merely fudge the metadata to match. If the file contents differ then the file will be overwritten; use --ignore-existing to change this behavior, or -u to use a different, sane behavior.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown