Say you have a list of files in filelist.txt
and call rynsc like so:
$rsync --files-from=filelist.txt /path/to/source /path/to/destination
Rsync sorts the files in filelist.txt
before processing them. According to the man
page, this is to make the transfer more efficient.
How do I turn that off? I have a case where I want the files transferred in a very specific order and I don't care if it makes the transfer less efficient.
cat filelist.txt | xargs -n1 -I{} rsync --progress "/path-from/{}" "/path-to/{}"
This should pass each file to rsync via xargs one line at a time.
You can replace
cat xxx.txt
with
ls -t | xargs ....
if you prefer.
Indeed rsync annoyingly doesn't use the order that you specified in the list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With