Installing and Administering Internet Services

Chapter 10 419
Using rdist
Starting rdist
Other options are listed in Table 10-2.
Example Output on the Master Host
This section shows an example of what is displayed on the standard
output on the master host when rdist is run. An example distfile is
shown below:
HOSTS = (lassie benji )
FILES = ( myprog.c )
${FILES} -> ${HOSTS}
install;
special "cc";
notify bentley@tbear;
rdist is started with no command line options. The display on the
standard output on the master host is shown below:
Table 10-2 rdist Command Line Options
-b Performs a binary comparison and updates files if they differ. Without this option, rdist
updates files only if the size or modification time differs.
-h Follows symbolic links on the master host and copies the file(s) that the link points to. Without
this option, rdist copies the name of a symbolic link.
-i Ignores unresolved links. Without this option, rdist tries to maintain the link structure of the
files being copied and sends out warnings if any link cannot be found.
-M Checks that mode, ownership, and group of updated files on the remote host are the same as
the master copy and updates the files if they differ. This is done in addition to any other
comparison that may be in effect.
-n Prints rdist commands on standard output on the master host without executing them. This
option is useful for debugging a distfile.
-q Suppresses printing of files being modified to standard output on the master host.
-R Removes files in the remote host’s directory that do not exist on the master directory.
-v Displays the files that are out of date on the remote host but does not update any files or send
any mail.
-w Appends the full path name (including directory subtree) to a destination directory name.
-y Does not update files on the remote host that are newer than the master copy.