It may sound strange, but I really want to copy only the existing files, so this files will be updated/overridden, and any new file will not be added.
I want to copy files of a single extension. It works well with this script line:
rsync -avm --include='*.bak' -f 'hide,! */' /Directory-to-be-backed-up/ /media/USB_stick
But I also want that the file to be copied only if it already exist in the destiny (overriding it).
For example, I have this 3 files in
/tmp/a/1.h /tmp/a/2.h /tmp/a/internal/3.h
And this 2 files in
I would like to update/override the existing files in
/tmp/b using the ones in
/tmp/a, but not copy any new file (like the
Is there a way?