2

I want to know the default speed of rsync command to send data from local machine to remote machine. Is that depend on network or rsync has default speed is set for rsync command.

LOKESH
  • 141

2 Answers2

6

The default speed depends on the network, and on the system.
If not explicitly asked for, rsync will try to use all the available bandwidth.

Nevertheless you can read a speed value higher then the physical bandwidth of your connection because the counts of the speedup value is probably made dividing the total amount of data for the used time; note the "total amount of data" and not the "total amount of data transferred". This is even more evident when you do a dry-run with the -n option specified to perform a trial run that will not make any change.

Indeed rsync can skips files or part of the files in the transfer operation when it is not needed to update them following the current options.

Rsync finds files that need to be transferred using a "quick check" algorithm (by default) that looks for files that have changed in size or in last-modified time. Any changes in the other preserved attributes (as requested by options) are made on the destination file directly when the quick check indicates that the file’s data does not need to be updated.

Option that can affect the normal use (see below) are

--bwlimit=RATE          limit socket I/O bandwidth
                        Note that since rsync can also be run as a daemon
                        this option is accepted in both cases client and demon.


-W, --whole-file        With this option rsync’s delta-transfer algorithm is not
                        used and the whole file is sent as-is instead.  

About -W

The transfer may be faster if this option is used when the bandwidth between the source and destination machines is higher than the bandwidth to disk (especially when the "disk" is actually a networked filesystem). This is the default when both the source and destination are specified as local paths, but only if no batch-writing option is in effect.

Note: it is always possible (even if not probable) that your system is limiting the bandwidth for the processes (see for example [1]) or the host system in the case of VirtualBox or Windows+Cygwin is putting some limits or delay due to different operations (sniffing, antivirus...)

Hastur
  • 19,483
  • 9
  • 55
  • 99
2

I don't think rsync have a default speed. Most of the time rsync is used with ssh and speed over scp will be same as rsync