Using HP-UX Internet Services (February 2007)

directory is removed on the remote host if the corresponding directory does not exist
on the master host.
For a detailed description of commands and their options, type man 1 rdist at the
HP-UX prompt.
The following file distribution commands use the variable definitions discussed
previously:
${FILES} -> ${HOSTS}
install -R ;
except /usr/lib/${EXLIB} ;
except /usr/games/lib ;
This command distributes the source files defined in the variable FILES to the
destination hosts defined in the variable HOSTS. rdist copies the files to each
remote host, removing files in the remote host’s directory that do not exist on the
master directory. rdist does not update files in /usr/lib/${EXLIB} or in
/usr/games/lib.
srcs:
/usr/src/bin -> arpa
except_pat ( .o$ /SCCS $ ) ;
This command distributes the directory /usr/src/bin to the host arpa; object
files or files that are under SCCS control are not copied.
Command to List Changed Files
The distfile entry can contain a list of files that have 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 ;
where,
label: Used to group command entries and is optional. You can use
labels to perform a partial update. Normally, rdist updates
all the files and directories listed in a distfile. You can invoke
rdist with a specific label; in this case, rdist executes only
the entries under the specified label.
source_list
Specifies the files on the local host that are newer than the
timestamp are noted in a list. directories or files on the master
host used as the master copy for distributing to the remote hosts.
timestamp_file
Specify a date to generate a list of files on the local host that
have modified since that date.
30 Distributing Files Using rdist