.ad l .nh .TH mirror 1 "1 Feb 1994" "netlib" .SH NAME mirror - execute masterslave script to update files by ftp .SH SYNOPSIS .B "mirror" \fIftpcmd\fP \fIhost\fP \fIdirectory\fP \fIcompressed.suffix\fP < \fIcommands\fP .SH DESCRIPTION \fBMirror\fP directly executes the "time" and "rm" commands produced by \fBmasterslave\fP and rewrites the "get" commands into a form suitable for \fBftp\fP. .PP The first argument, \fIftpcmd\fP, is the local name of the ftp command; normally this would be "ftp" but on some systems it is "pftp" to work through a proxy. .PP \fIHost\fP is the name of the remote (master) system. (\fIMirror\fP is executed on the slave; it is both more reliable and more secure to pull than to push.) .PP \fIDirectory\fP is the starting directory on remote system. .PP The file \fICompressed.suffix\fP lists suffixes that characterize files not suitable for compression. Here is part of the list that netlib uses: .B .nf .gif GIF image file .gz gzip (available in /netlib/gnu/gzip/) .jpg JPEG image file .fi .PP \fICommands\fP are output from \fImasterslave\fP. .SH EXAMPLE .PP .B masterslave master.crc slave.crc | mirror ftp netlib.att.com . /netlib/crc/net/compressed .SH SEE ALSO .B masterslave(1) .SH AUTHOR Eric Grosse .