We are currently using rsync to run the backup job. This work takes several hours. Since some parts of the backup are more important than others, we would like to back them up before everything else (i.e. what rsync transfers these files in the first place). This should be easy to do with rsync --files-from .
Unfortunately, the files we need for prioritization are located next to all other files in the same directory (flat hierarchy, boo!), They just have a certain extension for their identification. Thus, we would like to get a list of files that rsync will transfer, sort it locally, and then transfer it to rsync using rsync --files-from .
Using rsync -v --dry-run gives us most of the way (I think), but displays directory changes and changes to file properties, which means that we really don't get a list that can be used right away.
So my question is this: how can I get a list of files to use from rsync?
source share