Using rsync, files-from, and FIFOs to Transfer a Dynamically Generated List of Files Use rsync’s –files-from and –rsync-path option to create a dynamic list of files to sync from the remote.
Forcing Rsync to Create a Remote Path Using –rsync-path rsync has a –rsync-path parameter that allows you to cheat and specify commands to run before executing rsync.