Introduction Rsync is an open-source application that provides fast incremental or mirror backup by leveraging built-in data deduplication algorithms. It is included in almost all Linux distributions.
Features Can update whole directory trees and filesystems Optionally preserves symbolic links, hard links, file ownership, permissions, devices and times Requires no special privileges to install Internal pipelining reduces latency for multiple files Can use rsh, ssh or direct sockets as the transport Supports anonymous rsync which is ideal for mirroring Basic Use rsync -option source/ destination/ Option Description -v Verbose mode, outputs detailed information -r Recurse into directories -a Archive mode (-rlptgoD, no -A, -X, -U, -N, -H) -h Output numbers in a human-readable format -z Use compression to transfer data -e Specify the remote shell to use -P Same as 鈥損artial 鈥損rogress -W Copy files whole (without delta-xfer algorithm) 鈥損rogress Show progress during transfer 鈥揹elete Delete extraneous files from destination directories 鈥搑emove-source-files Sender removes synchronized files (non-dir) 鈥揺xclude=PATTERN Exclude files matching PATTERN 鈥搃nclude=PATTERN Don鈥檛 exclude files matching PATTERN 鈥揷opy-as=USER[:GROUP] Specify user and optional group for the copy 鈥揷hmod=CHMOD Affect file and/or directory permissions Samples rsync -avh /home/user/data/ /mnt/backup Copy /home/user/data/ (as source directory) to /mnt/backup (as destination directory), using the options -avh....