Sync a list of file and delete everything else

Hi guys.
This is the situation:

2 servers, reachable with ssh
From Server1 I have to sync (incrementally), a list of directories to Server2 and delete (from Server2) everything else that is not transferred (sprious files, files not in the source list, files deleted from the source and so on)

Any idea ?
rsync doesn't do this

hi,
what about rclone sync ?

Not sure why you say that rsync can not do it. Check rsync documentation and read about --delete flag.

If you prefer rclone check rclone sync

--delete doesn't work as expected with --files-from.

If you have some files not in --files-from, even with --delete these are not removed

[duplicate to previous answer, sorry]