Josh,

If you're mirroring, I've had fairly good luck with the Perl mirror package
from http://sunsite.org.uk/packages/mirror/

The interface is a little clunky, but it works. For each directory tree you
want to mirror, you make a little parameter file that describes where
you're coming from and where you're going to. It looks like this:

package=mirror
      comment=The Mirror Package
      site=remotesite.somewhere.com
      remote_dir=remotedir_in_unix_format
      # This setting of local_dir is suitable for Un*x
#     local_dir=/var/tmp/mirror
      # If you are under Wind*ws then use a line like this instead:
      #     local_dir=c:\tmp\mirror
local_dir=c:\mymirror\remotesite

The local directory must exist, but the package will create whatever directories are 
needed under it.

Because it wants to "require" files from its own directory, I generally
wrap the Perl in a little .BAT file. Assuming the parameter file for the
remote site is remotesite.txt the BAT file looks like this:

rem c:\Mirror is intended to be the directiry into which you expanded the software
set my_dir=c:\Mirror
rem Update the mirror of the remote web site
set PERL5LIB=%my_dir%
perl %my_dir%\Mirror.pl -d %my_dir%\packages\remotesite.txt

Tom Wyant

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to