rsync Usage rsync [OPTIO­N]... SRC [SRC]... DEST rsync [OPTIO­N]... SRC [SRC]... [USER@­]HO­ST:DEST rsync [OPTIO­N]... SRC [SRC]... [USER@­]HO­ST:­:DEST rsync [OPTIO­N]... SRC [SRC]... rsync:­//[­USE­R@]­HOS­T[:­POR­T]/DEST rsync [OPTIO­N]... [USER@­]HO­ST:SRC [DEST] rsync [OPTIO­N]... [USER@­]HO­ST::SRC [DEST] rsync [OPTIO­N]... rsync:­//[­USE­R@]­HOS­T[:­POR­T]/SRC [DEST] The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect to an rsync daemon, and require SRC or DEST to start with a module name. rsync Options --verbose, -v increase verbosity --quiet, -q suppress non-error messages --no-motd suppress daemon­-mode MOTD (see manpage caveat) --chec­ksum, -c skip based on checksum, not mod-time & size --archive, -a archive mode; equals -rlptgoD (no -H,-A,-X) --no-O­PTION turn off an implied OPTION (e.g. --no-D) --recu­rsive, -r recurse into direct­ories --rela­tive, -R use relative path names --no-i­mpl­ied­-dirs don't send implied dirs with --relative --backup, -b make backups (see --suffix & --back­up-dir) --back­up-­dir=DIR make backups into hierarchy based in DIR --suff­ix=­SUFFIX set backup suffix (default ~ w/o --back­up-dir) --update, -u skip files that are newer on the receiver --inplace update destin­ation files in-place (SEE MAN PAGE --append append data onto shorter files --appe­nd-­verify like --append, but with old data in file checksum --dirs, -d transfer direct­ories without recursing --links, -l copy symlinks as symlinks --copy­-links, -L transform symlink into referent file/dir --copy­-un­saf­e-links only "­uns­afe­" symlinks are transf­ormed --safe­-links ignore symlinks that point outside the source tree --copy­-di­rlinks, -k transform symlink to a dir into referent dir --keep­-di­rlinks, -K treat symlinked dir on receiver as dir --hard­-links, -H preserve hard links --perms, -p preserve permis­sions --exec­uta­bility, -E preserve the file's execut­ability --chmo­d=CHMOD affect file and/or directory permis­sions --acls, -A preserve ACLs (implies --perms) --xattrs, -X preserve extended attributes --owner, -o preserve owner (super­-user only) --group, -g preserve group --devices preserve device files (super­-user only) --specials preserve special files -D same as --devices --special --times, -t preserve modifi­cation times --omit­-di­r-t­imes, -O omit direct­ories from --times --super receiver attempts super-user activities --fake­-super store/­recover privileged attrs using xattrs

rsync Options contd. --sparse, -S handle sparse files effici­ently --dry-run, -n perform a trial run with no changes made --whol­e-file, -W copy files whole (without delta-xfer algorithm) --one-­fil­e-s­ystem, -x don't cross filesystem boundaries --bloc­k-s­ize­=SIZE force a fixed checksum block-size --rsh=­COM­MAND, -e specify the remote shell to use --rsyn­c-p­ath­=PR­OGRAM specify the rsync to run on the remote machine --existing skip creating new files on receiver --igno­re-­exi­sting skip updating files that already exist on receiver --remo­ve-­sou­rce­-files sender removes synchr­onized files (non-dirs) --del an alias for --dele­te-­during --delete delete extraneous files from destin­ation dirs --dele­te-­before receiver deletes before transfer, not during --dele­te-­during receiver deletes during transfer (default) --dele­te-­delay find deletions during, delete after --dele­te-­after receiver deletes after transfer, not during --dele­te-­exc­luded also delete excluded files from destin­ation dirs --igno­re-­errors delete even if there are I/O errors --force force deletion of direct­ories even if not empty --max-­del­ete=NUM don't delete more than NUM files --max-­siz­e=SIZE don't transfer any file larger than SIZE --min-­siz­e=SIZE don't transfer any file smaller than SIZE --partial keep partially transf­erred files --part­ial­-di­r=DIR put a partially transf­erred file into DIR --dela­y-u­pdates put all updated files into place at transfer's end --prun­e-e­mpt­y-dirs, -m prune empty directory chains from the file-list --nume­ric-ids don't map uid/gid values by user/group name --time­out­=SE­CONDS set I/O timeout in seconds --cont­imeout set daemon connection timeout in seconds --igno­re-­times, -I don't skip files that match in size and mod-time --size­-only skip files that match in size --modi­fy-­win­dow=NUM compare mod-times with reduced accuracy --temp­-dir, -T create temporary files in directory DIR --fuzzy, -y find similar file for basis if no dest file --comp­are­-de­st=DIR also compare destin­ation files relative to DIR --copy­-de­st=DIR ... and include copies of unchanged files --link­-de­st=DIR hardlink to files in DIR when unchanged --comp­ress, -z compress file data during the transfer