Be consistent on use of '=' on options that take a parameter.
[rsync/rsync.git] / README
CommitLineData
c627d613
AT
1WHAT IS RSYNC?
2--------------
3
4rsync is a replacement for rcp that has many more features.
5
10ce5fbf 6rsync uses the "rsync algorithm" which provides a very fast method for
c627d613
AT
7bringing remote files into sync. It does this by sending just the
8differences in the files across the link, without requiring that both
9sets of files are present at one of the ends of the link beforehand.
10At first glance this may seem impossible because the calculation of
11diffs between two files normally requires local access to both
12files.
13
14A technical report describing the rsync algorithm is included with
c6e7fcb4 15this package.
c627d613
AT
16
17
18USAGE
19-----
20
21Basically you use rsync just like rcp, but rsync has many additional options.
22
dcc3a131 23Here is a brief description of rsync usage:
c627d613 24
9ef53907 25Usage: rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST
dcc3a131 26 or rsync [OPTION]... [USER@]HOST:SRC DEST
9ef53907 27 or rsync [OPTION]... SRC [SRC]... DEST
dcc3a131 28 or rsync [OPTION]... [USER@]HOST::SRC [DEST]
9ef53907 29 or rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
dcc3a131 30 or rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
9ef53907
DD
31SRC on single-colon remote HOST will be expanded by remote shell
32SRC on server remote HOST may contain shell wildcards or multiple
33 sources separated by space as long as they have same top-level
dcc3a131
DD
34
35Options
36 -v, --verbose increase verbosity
9ef53907 37 -q, --quiet decrease verbosity
dcc3a131
DD
38 -c, --checksum always checksum
39 -a, --archive archive mode
40 -r, --recursive recurse into directories
41 -R, --relative use relative path names
9ef53907
DD
42 -b, --backup make backups (default ~ suffix)
43 --suffix=SUFFIX override backup suffix
dcc3a131
DD
44 -u, --update update only (don't overwrite newer files)
45 -l, --links preserve soft links
46 -L, --copy-links treat soft links like regular files
47 --safe-links ignore links outside the destination tree
48 -H, --hard-links preserve hard links
49 -p, --perms preserve permissions
50 -o, --owner preserve owner (root only)
51 -g, --group preserve group
52 -D, --devices preserve devices (root only)
53 -t, --times preserve times
54 -S, --sparse handle sparse files efficiently
55 -n, --dry-run show what would have been transferred
56 -W, --whole-file copy whole files, no incremental checks
57 -x, --one-file-system don't cross filesystem boundaries
9ef53907 58 -B, --block-size=SIZE checksum blocking size (default 700)
dcc3a131
DD
59 -e, --rsh=COMMAND specify rsh replacement
60 --rsync-path=PATH specify path to rsync on the remote machine
61 -C, --cvs-exclude auto ignore files in the same way CVS does
62 --delete delete files that don't exist on the sending side
63 --partial keep partially transferred files
64 --force force deletion of directories even if not empty
65 --numeric-ids don't map uid/gid values by user/group name
66 --timeout=TIME set IO timeout in seconds
67 -I, --ignore-times don't exclude files that match length and time
68 -T --temp-dir=DIR create temporary files in directory DIR
69 --compare-dest=DIR also compare destination files relative to DIR
70 -z, --compress compress file data
71 --exclude=PATTERN exclude files matching PATTERN
72 --exclude-from=FILE exclude patterns listed in FILE
73 --include=PATTERN don't exclude files matching PATTERN
74 --include-from=FILE don't exclude patterns listed in FILE
dcc3a131
DD
75 --version print version number
76 --daemon run as a rsync daemon
77 --config=FILE specify alternate rsyncd.conf file
78 --port=PORT specify alternate rsyncd port number
79 --stats give some file transfer stats
80 --progress show progress during transfer
81 --log-format=FORMAT log file transfers using specified format
9ef53907 82 --password-file=FILE get password from FILE
dcc3a131 83 -h, --help show this help screen
c627d613
AT
84
85
9ef53907 86
c627d613
AT
87SETUP
88-----
89
90Rsync uses rsh or ssh for communication. It does not need to be setuid
14d43f1f 91and requires no special privileges for installation. It does not
c627d613 92require a inetd entry or a daemon. You must, however, have a working
d89322c4
AT
93rsh or ssh system. Using ssh is recommended for its security
94features.
c627d613
AT
95
96To install rsync, first run the "configure" script. This will create a
97Makefile and config.h appropriate for your system. Then type
98"make".
99
debb4505
AT
100Note that on some systems you will have to force configure not to use
101gcc because gcc may not support some features (such as 64 bit file
102offsets) that your system may support. Set the environment variable CC
103to the name of your native compiler before running configure in this
104case.
105
c627d613
AT
106Once built put a copy of rsync in your search path on the local and
107remote systems (or use "make install"). That's it!
108
e095b568
AT
109RSYNC SERVERS
110-------------
111
112rsync can also talk to "rsync servers" which can provide anonymous or
ed06894a 113authenticated rsync. See the rsyncd.conf(5) man page for details on how
e095b568
AT
114to setup a rsync server. See the rsync(1) man page for info on how to
115connect to a rsync server.
116
c627d613 117
432b0fbd
AT
118MAILING LIST
119------------
120
121There is a mailing list for the discussion of rsync and its
122applications. It is open to anyone to join. I will announce new
123versions on this list.
124
9e3c856a 125To join the mailing list send mail to listproc@samba.org with
432b0fbd
AT
126no subject and a body of "subscribe rsync Your Name".
127
9e3c856a 128To send mail to everyone on the list send it to rsync@samba.org
432b0fbd
AT
129
130
e92338c8
AT
131BUG REPORTS
132-----------
133
134If you have web access then please look at
9e3c856a 135http://rsync.samba.org/rsync/
e92338c8
AT
136
137This will give you access to the bug tracking system used by the
138developers of rsync and will allow you to look at other bug reports or
139submit a new bug report.
140
141If you don't have web access then mail bug reports to
9e3c856a
AT
142rsync-bugs@samba.org or (if you think it will be of interest to lots
143of people) send it to rsync@samba.org
e92338c8
AT
144
145
527cea66
AT
146CVS TREE
147--------
148
149If you want to get the very latest version of rsync direct from the
150source code repository then you can use anonymous cvs. You will need a
151recent version of cvs then use the following commands:
152
9e3c856a 153 cvs -d :pserver:cvs@cvs.samba.org:/cvsroot login
527cea66
AT
154 Password: cvs
155
9e3c856a 156 cvs -d :pserver:cvs@cvs.samba.org:/cvsroot co rsync
527cea66
AT
157
158Look at the cvs documentation for more details.
159
160
c627d613
AT
161COPYRIGHT
162---------
163
164Rsync was written by Andrew Tridgell and Paul Mackerras, and is
8a24eece 165available under the Gnu Public License.
c627d613 166
9e3c856a 167tridge@samba.org
c627d613
AT
168paulus@cs.anu.edu.au
169
170
171AVAILABILITY
172------------
173
9e3c856a
AT
174The main web site for rsync is http://rsync.samba.org/
175The main ftp site is ftp://rsync.samba.org/pub/rsync/
176This is also available as rsync://rsync.samba.org/rsyncftp/