Professional Documents
Culture Documents
rsync Usage
--
--acls, -A
backup-dir=
based in DIR
[USER@]HOST:DEST
DIR
--
suffix=SUF
--backup-dir)
[USER@]HOST::DEST
rsync [OPTION]... SRC [SRC]...
rsync://[USER@]HOST[:PORT]/DEST
rsync [OPTION]... [USER@]HOST:SRC [DEST]
rsync [OPTION]... [USER@]HOST::SRC
[DEST]
FIX
--update, -u
--inplace
--append
rsync://[USER@]HOST[:PORT]/SRC [DEST]
--
append-verif
in file checksum
rsync [OPTION]...
--dirs, -d
perms)
--xattrs, -X
--owner, -o
--group, -g
preserve group
--devices
--specials
-D
--times, -t
--omit-dir-
times, -O
transfer directories without
--super
recursing
module name.
--fake-super
--links, -l
--copy-
links, -L
file/dir
verbose,
--copy-
-v
unsafe-links
transformed
--sparse, -S
--safe-links
--dry-run, -n
rsync Options
--
--quiet, -q
increase verbosity
--no-
motd
--
checksum
, -c
--whole-file, -
dirlinks, -k
referent dir
xfer algorithm)
--keep-
--one-file-
dirlinks, -K
as dir
system, -x
boundaries
--block-
size=SIZE
size
--
--hard-links,
-H,-A,-X)
-H
--no-
--perms, -p
no-D)
--
executability
preserve permissions
preserve the file's executability
recursive,
, -E
-r
--
--
chmod=CH
permissions
changes made
--copy-
-a
--
--archive,
OPTION
using xattrs
rsh=COMMA
ND, -e
MOD
relative, R
--no-
implied-
relative
dirs
--backup,
-b
backup-dir)
Sponsored by Readability-Score.com
cheatography.com/richardjh/
richardjh.org
Page 1 of 3.
https://readability-score.com
--rsync-
--partial
--compress-
path=PROGRA
--partial-
level=NUM
level
dir=DIR
into DIR
--skip-
compress=LIS
suffix in LIST
M
--existing
--
ignore-existing
--
sender removes
remove-source
-files
--delay-
updates
at transfer's end
--prune-
empty-dirs, -m
--numeric-ids
--
--del
--delete
ONDS
destination dirs
--contimeout
--
delete-before
-C
--filter=RULE,
-f
-F
same as --filter='dir-merge
/.rsync-filter'
repeated: --filter='- .rsyncfilter'
--
exclude=PATT
PATTERN
ignore-times, -
delete-during
transfer (default)
--
timeout in seconds
--delete-after
--cvs-exclude,
timeout=SEC
--
--delete-delay
ERN
--exclude-
from=FILE
FILE
--
--size-only
after
--
modify-windo
reduced accuracy
include=PATT
not during
w=NUM
--temp-dir, -T
--include-
from=FILE
FILE
--files-
dest file
from=FILE
from FILE
--from0, -0
directory DIR
--
ignore-errors
errors
--force
--compare-
dest=DIR
relative to DIR
--
--copy-
max-delete=N
files
dest=DIR
UM
--
max-size=SIZE
than SIZE
--
min-size=SIZE
than SIZE
--fuzzy, -y
ERN
delimited by 0s
--protect-args,
no space-splitting; only
unchanged files
-s
wildcard special-chars
--link-
--
dest=DIR
unchanged
address=ADD
socket to daemon
--compress, -
transfer
RESS
--port=PORT
specify double-colon
alternate port number
--
sockopts=OPTI
ONS
Sponsored by Readability-Score.com
cheatography.com/richardjh/
richardjh.org
Page 2 of 3.
https://readability-score.com
--blocking-io
--
remote shell
protocol=NUM
version to be used
--
iconv=CONVE
of filenames
--stats
--8-bit-output, -
unescaped in output
--human-
output numbers in a
readble, -h
RT_SPEC
--ipv4, -4
prefer IPv4
human-readable format
--ipv6, -6
prefer IPv6
--progress
--version
-P
--help, -h
--itemize-
changes, -i
all updates
--
out-format=FO
all updates
RMAT
--log-file=FILE
--log-file-
format=FMT
specified FMT
--password-
read daemon-access
file=FILE
--list-only
--
bwlimit=KBPS
per second
--write-
batch=FILE
FILE
--only-write-
batch=FILE
updating destination
--read-
batch=FILE
FILE
Sponsored by Readability-Score.com
cheatography.com/richardjh/
richardjh.org
Page 3 of 3.
https://readability-score.com