How can I copy files from source to destination, where in all the files existing in destination (with directory structure), only should be copied from the source, overwritten in the destination. Rest of the files (including the directory structure) should not be copied from source to destination. I think rsync can achieve this, not sure on the options we have to select.
How do I only copy files to a destination that exist in the folder from the source, everything else should not be copied
files;rsync
Thanks @Dubu I didn't know that flag existed. Here's an example:$ ls -R src ; ls -R dstsrc:a  b  c  empty_dir  sub_dirsrc/empty_dir:src/sub_dir:e  fdst:a  c  sub_dirdst/sub_dir:f$ rsync --recursive --existing --verbose src/ dstsending incremental file listacsub_dir/fsent 262 bytes  received 71 bytes  666.00 bytes/sec