I have executed following command in order to get the list of files that would be transferred to remote server if rsync is executed:

rsync -avzm --stats --safe-links --ignore-existing --dry-run --human-readable /tmp/test REMOTE-HOST:/tmp/data/ >> /tmp/transfer.log

In order to fetch only the list of files (all are PDFs), I executed following command:

grep 'pdf$' transfer.log > files.txt

Where I could not see the absolute paths of the files:


What option should be used in order to get absolute paths of the files when rsync dry-run is performed?

I need to use that list of files so that I can cat the file list and execute multiple rsyncs using GNU parallel. (as in THIS question)

  • Use the -R or --relative option. – fd0 Apr 10 '15 at 11:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.