What is archive mode in rsync?

It’s all of these: -r, –recursive recurse into directories -l, –links copy symlinks as symlinks -p, –perms preserve permissions -t, –times preserve modification times -g, –group preserve group -o, –owner preserve owner (super-user only) -D same as –devices –specials –devices preserve device files (super-user only) –specials preserve special files It excludes: -H, –hard-links preserve hard … Read more

Showing total progress in rsync: is it possible?

There is now an official way to do this in rsync (version 3.1.0 protocol version 31, tested with Ubuntu Trusty 14.04). #> ./rsync -a –info=progress2 /usr . 305,002,533 80% 65.69MB/s 0:00:01 xfr#1653, ir-chk=1593/3594) I tried with my /usr folder because I wanted this feature for transferring whole filesystems, and /usr seemed to be a good … Read more

Speed up rsync with Simultaneous/Concurrent File Transfers?

Updated answer (Jan 2020) xargs is now the recommended tool to achieve parallel execution. It’s pre-installed almost everywhere. For running multiple rsync tasks the command would be: This will list all folders in /srv/mail, pipe them to xargs, which will read them one-by-one and and run 4 rsync processes at a time. The % char replaces the input argument for each command call. Original … Read more

How does `scp` differ from `rsync`?

The major difference between these tools is how they copy files. scp basically reads the source file and writes it to the destination. It performs a plain linear copy, locally, or over a network. rsync also copies files locally or over a network. But it employs a special delta transfer algorithm and a few optimizations to make the operation … Read more