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
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
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.