Calling rsync
in the following way, using --existing
, --ignore-existing
and --delete
allows the following:
- Files at target that do not exist at source will be deleted.
- Skipping all file copy operations from source to target.
$ rsync \
--delete \
--existing \
--ignore-existing \
--itemize-changes \
--progress \
--recursive \
/path/to/source/ /path/to/target