Installing and Administering Internet Services

Chapter 10 329
Using rdist
Creating the Distfile
The second example (labeled srcs) distributes the directory
/usr/src/bin to the host arpa; object files or files that are under SCCS
control are not copied.
Changed Files List Commands
The third type of distfile entry is used to make a list of files that have
been changed on the master host since a specified date. The format for
this type of entry is as follows:
[label:] source_list :: timestamp_file command_list ;
label: and source_list are specified in the same manner as in the entries
to distribute files.
timestamp_file is a file on the local host, whose modification time is used
as a timestamp. source_list files on the local host that are newer than the
timestamp are noted in a list.
Use the notify command to mail the list of changed files to a specified
user. The following is an example of this type of entry:
${FILES} :: stamp.cory
notify root@cory ;
In the above example, the list of files that are newer than the timestamp
in stamp.cory are mailed to the user root@cory. Note that with the
notify command, if no “@” appears in the user name, the remote host
name is assumed.