Synopsis:
usage: cl_dirsync [options] -s src source directory -d dest destination directory -c prog checksum program to use -x delete unmatched files in dest -t just test, don't copy or delete anything -v verbose output -V really verbose output
Description:
cl_dirsync can be used to insure that each machine in the cluster
has the same files and directories installed locally. At some point,
we may install this as root in order to keep things like
/usr/local and /opt/local the same on all machines.
At present, however, individual users must run this and hence they cannot
tamper with anything above their own home directory... EXCEPT /tmp!
Chances are you are using yup or Red Hat's update program to keep machines in sync -- so this command is not so essential anymore. If you don't know what yup is, check out www.yellowdoglinux.com -- for Red Hat's update agent, see www.redhat.com -- and www.rpm.org has lost of info on how RPMs can help keep machines in sync.
Options:
The -s and -d directory specifications are required.
Note that all directories are referenced from the machine where
cl_dirsync is running. Thus, you will often use
-s /home/user (which is NFS mounted to a department file server)
and -d /tmp/user (which is local to the machine).
The -c option is to switch between cksum and md5sum for doing the checksum calculations. These calculations help determine whether two files are the same - their checksum and their file modification times must be the same.
The -x option will cause unmatched files in the destination directory to be deleted (thus the destination will be an EXACT copy of the source directory). Without -x, these unmatched files will be left alone.
RCSID $Id: cl_dirsync.html,v 1.2 2002/03/12 14:11:18 jpormann Exp $