Linux/Basic commands/rsync

rsync is an advanced copy and synchronization tool including progress indicator.

Configuration files

 * which includes don't compress options for some file extensions

Options

 * compresses the file data as it is sent to the destination machine using zlib compression library
 * compresses the file data as it is sent to the destination machine using zlib compression library

Basic commands

 * Copy files from remote server to local machine: (explainshell )
 * option can slow transfers specially for large files
 * . Equivalent to -rlptgoD
 * . --partial keep partially transferred files
 * , print statistics
 * . --partial keep partially transferred files
 * , print statistics
 * , print statistics


 * -a, --archive. Equivalent to
 * -r --recursive            recurse into directoriees
 * -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

rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage receiving incremental file list .../...



Compression
rsync support compression, but you can also compress your data with other external compression tools before using rsync. Such as bzip, gzip or

Compressing using
 * -v provides progress bar
 * -T0 use all available Threads, multi-threaded compression supported since 2014, version 5.2.0.
 * -T0 use all available Threads, multi-threaded compression supported since 2014, version 5.2.0.

Activities

 * 1) Create a remote copy of your files for backup proposes using
 * 2) Read StackOverflow questions about rsync: https://stackoverflow.com/questions/tagged/rsync?tab=Votes
 * 3) Understand the differences between cp, scp and rsync: https://stackoverflow.com/questions/20244585/how-does-scp-differ-from-rsync
 * 4) Learn Effect of Trailing Slash / in rsync: https://www.alibabacloud.com/blog/speeding-up-network-file-transfers-with-rsync_594337
 * 5) Learn use of   for transferring large files and its important implications: http://man7.org/linux/man-pages/man1/rsync.1.html, also evaluate   impact on transfering large files
 * 6) Learn about   copy files whole (without delta-xfer algorithm), implications and usage cases such as not making a diff copy.
 * 7) Learn about   option and conflicts with