Using rsync to rename files during copying with --files-from? Using rsync to rename files during copying with --files-from? bash bash

Using rsync to rename files during copying with --files-from?


Not entirely true... you CAN rename files enroute with rsync, but only if you rsync one file at a time, and set the --no-R --no-implied-dirs options, then explicitly set the destination name in the destination path.

But at that point, you may just want to use some other tool.

This, for example, would work:

rsync --no-R --no-implied-dirs1.2.3.4::module/$FILENAME/$PATH/$TOFILE/$NEWFILENAME


There is no way to arbitrarily rename files with rsync. All rsync can do is move files to a different directory.

You must use a second tool either on the sending or receiving side to rename the files.