YPSYNC(8) — MAINTENANCE COMMANDS
NAME
ypsync − collect most up-to-date YP maps
SYNOPSIS
/usr/etc/yp/ypsync [ -r ] [ -u ]
AVAILABILITY
Sun386i systems only.
DESCRIPTION
The ypsync command is used to gather current Yellow Pages (YP) maps to the local YP server. When invoked with no arguments, it will poll all the YP servers listed in the ypservers YP map for the maps they serve, and the order of those maps. If there are any new maps that the local server does not have, or if there are maps that are more current than the local server’s copy, it invokes ypxfr to transfer those maps to the local server.
The ypsync command eliminates the need for cron jobs to ensure that YP map updates are eventually transmitted to all YP servers, and supports different YP maps having different masters. It is invoked periodically by ypserv(8).
When invoked with the -r flag, ypsync will recreate the local /var/yp directory and databases if needed. This facility is used when upgrading servers, since they can automatically retrieve YP maps without needing manual intervention. The YP master of the ypservers map can also designate new servers, which would automatically pick up their new maps on reboot.
When invoked with the -u flag, ypsync will update the list of YP servers on the master of the ypservers YP map to include the local system if it doesn’t already, and then get copies of all the YP databases. A user invoking ypsync -u may not be root, and must have the networks privilege in the YP group map.
FILES
/var/yp/YP.domainname
SEE ALSO
ypupdate(3c), ypserv(8), ypxfr(8)
Sun Release 4.0 — Last change: 10/21/88