Make sure secrets file is not other-accessible, and owned by root if the
[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
23Here is a brief description of available options:
24
82306bf6 25Options:
c627d613
AT
26-v, --verbose increase verbosity
27-c, --checksum always checksum
28-a, --archive archive mode (same as -rlptDog)
29-r, --recursive recurse into directories
e92338c8 30-R, --relative use relative path names
c627d613
AT
31-b, --backup make backups (default ~ extension)
32-u, --update update only (don't overwrite newer files)
33-l, --links preserve soft links
82306bf6 34-L, --copy-links treat soft links like regular files
dc5ddbcc 35-H, --hard-links preserve hard links
c627d613
AT
36-p, --perms preserve permissions
37-o, --owner preserve owner (root only)
38-g, --group preserve group
39-D, --devices preserve devices (root only)
40-t, --times preserve times
dc5ddbcc 41-S, --sparse handle sparse files efficiently
c627d613 42-n, --dry-run show what would have been transferred
82306bf6 43-W, --whole-file copy whole files, no incremental checks
c627d613
AT
44-x, --one-file-system don't cross filesystem boundaries
45-B, --block-size SIZE checksum blocking size
46-e, --rsh COMMAND specify rsh replacement
47 --rsync-path PATH specify path to rsync on the remote machine
48-C, --cvs-exclude auto ignore files in the same way CVS does
49 --delete delete files that don't exist on the sending side
8a24eece
AT
50 --force force deletion of directories even if not empty
51 --numeric-ids don't map uid/gid values by user/group name
52 --timeout TIME set IO timeout in seconds
c627d613 53-I, --ignore-times don't exclude files that match length and time
8a24eece 54-T --temp-dir DIR create temporary files in directory DIR
d89322c4 55-z, --compress compress file data
c627d613
AT
56 --exclude FILE exclude file FILE
57 --exclude-from FILE exclude files listed in FILE
58 --suffix SUFFIX override backup suffix
59 --version print version number
e095b568
AT
60 --daemon run as a rsync daemon
61 --config FILE specify alternate rsyncd.conf file
62 --port PORT specify alternate rsyncd port number
c627d613
AT
63
64
c627d613
AT
65SETUP
66-----
67
68Rsync uses rsh or ssh for communication. It does not need to be setuid
14d43f1f 69and requires no special privileges for installation. It does not
c627d613 70require a inetd entry or a daemon. You must, however, have a working
d89322c4
AT
71rsh or ssh system. Using ssh is recommended for its security
72features.
c627d613
AT
73
74To install rsync, first run the "configure" script. This will create a
75Makefile and config.h appropriate for your system. Then type
76"make".
77
debb4505
AT
78Note that on some systems you will have to force configure not to use
79gcc because gcc may not support some features (such as 64 bit file
80offsets) that your system may support. Set the environment variable CC
81to the name of your native compiler before running configure in this
82case.
83
c627d613
AT
84Once built put a copy of rsync in your search path on the local and
85remote systems (or use "make install"). That's it!
86
e095b568
AT
87RSYNC SERVERS
88-------------
89
90rsync can also talk to "rsync servers" which can provide anonymous or
ed06894a 91authenticated rsync. See the rsyncd.conf(5) man page for details on how
e095b568
AT
92to setup a rsync server. See the rsync(1) man page for info on how to
93connect to a rsync server.
94
c627d613 95
432b0fbd
AT
96MAILING LIST
97------------
98
99There is a mailing list for the discussion of rsync and its
100applications. It is open to anyone to join. I will announce new
101versions on this list.
102
9e3c856a 103To join the mailing list send mail to listproc@samba.org with
432b0fbd
AT
104no subject and a body of "subscribe rsync Your Name".
105
9e3c856a 106To send mail to everyone on the list send it to rsync@samba.org
432b0fbd
AT
107
108
e92338c8
AT
109BUG REPORTS
110-----------
111
112If you have web access then please look at
9e3c856a 113http://rsync.samba.org/rsync/
e92338c8
AT
114
115This will give you access to the bug tracking system used by the
116developers of rsync and will allow you to look at other bug reports or
117submit a new bug report.
118
119If you don't have web access then mail bug reports to
9e3c856a
AT
120rsync-bugs@samba.org or (if you think it will be of interest to lots
121of people) send it to rsync@samba.org
e92338c8
AT
122
123
527cea66
AT
124CVS TREE
125--------
126
127If you want to get the very latest version of rsync direct from the
128source code repository then you can use anonymous cvs. You will need a
129recent version of cvs then use the following commands:
130
9e3c856a 131 cvs -d :pserver:cvs@cvs.samba.org:/cvsroot login
527cea66
AT
132 Password: cvs
133
9e3c856a 134 cvs -d :pserver:cvs@cvs.samba.org:/cvsroot co rsync
527cea66
AT
135
136Look at the cvs documentation for more details.
137
138
c627d613
AT
139COPYRIGHT
140---------
141
142Rsync was written by Andrew Tridgell and Paul Mackerras, and is
8a24eece 143available under the Gnu Public License.
c627d613 144
9e3c856a 145tridge@samba.org
c627d613
AT
146paulus@cs.anu.edu.au
147
148
149AVAILABILITY
150------------
151
9e3c856a
AT
152The main web site for rsync is http://rsync.samba.org/
153The main ftp site is ftp://rsync.samba.org/pub/rsync/
154This is also available as rsync://rsync.samba.org/rsyncftp/