1.7 KiB
rsync Options
Basic Options
-v, --verbose # Increase verbosity -q, --quiet # Suppress non-error messages -a, --archive # Archive mode (equivalent to -rlptgoD) -r, --recursive # Recursively copy directories -b, --backup # Make backups (see --suffix & --backup-dir) -n, --dry-run # Show what would happen without making changes
Sync Options
-u, --update # Skip files that are newer on receiver --inplace # Update files in-place --append # Append data to shorter files -z, --compress # Compress file data during transfer --delete # Delete extraneous files from destination
Selection Options
-m, --prune-empty-dirs # Prune empty directory chains from file-list --include=PATTERN # Include files matching pattern --exclude=PATTERN # Exclude files matching pattern --exclude-from=FILE # Read exclude patterns from FILE
Display Options
-h, --human-readable # Output numbers in human-readable format --progress # Show progress during transfer -i, --itemize-changes # Output a change-summary for all updates
Preservation Options
-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
Connection Options
-e, --rsh=COMMAND # Specify the remote shell to use --port=PORT # Specify alternate port number --blocking-io # Use blocking I/O for remote shell