[96415] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: mirroring local html tree to an ISP server

daemon@ATHENA.MIT.EDU (lconrad@world.std.com)
Tue Oct 27 00:12:47 1998

From: lconrad@world.std.com
To: redhat-list@redhat.com, jmkeller@radix.net
Date: 27 Oct 1998 00:11:27 -0500
In-Reply-To: James Michael Keller's message of "Mon, 26 Oct 1998 13:03:32 -0500"
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

--Multipart_Tue_Oct_27_00:11:27_1998-1
Content-Type: text/plain; charset=US-ASCII


James Michael Keller <jmkeller@radix.net> writes:

> I'm looking for something that I can put in as a crontab and have it
> mirror my local boxes public_html dir to my ISPs.  Since they have more
> bandwith.
> 
> Something that would keep it the same - such as removing files, or just
> nuke the target dir then upload from the local dir.
> 
> I've looked at some of the mirror programs, but they are all set up for
> the opposit path - the remote server to here.
> 
> I've gotten ftp to work with a password file so I guess I could cook up
> a script or something.  But I have other coding projects to worry about
> at the moment, this being midterms and all :)

I had the same problem.  The solution I'm using now is to have a
Makefile in the  local directory, and an ftp script (actually using
ncftp) which uploads the targets that actually changed.  I can email
anyone who's interested the actual makefile.  The disadvantage of this 
approach is that the makefile does have to know what the targets are.

I recommend using something besides ftp, which doesn't know whether to 
upload ascii or binary, and doesn't report failure to the script.  I
did use an expect script that did an ftp, but I found it wasn't a good 
solution.

I also have an expect script which logs on to the ISP and runs a
script, so I could now use one of the mirroring programs if I wanted
to.  I could also email this to anyone who's interested.


--Multipart_Tue_Oct_27_00:11:27_1998-1
Content-Type: text/plain; charset=US-ASCII

Laura (lconrad@world.std.com, http://www.world.std.com/~lconrad/ )
(617) 661-8097	 
233 Broadway, Cambridge, MA 02139

--Multipart_Tue_Oct_27_00:11:27_1998-1--


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post