[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SpeechIO-83] syncing http://www.op.net/~darxus/speechio w/ http://speechio.undef.net




It's easier for me to update op.net, because I can ftp into it, and I
can't ftp into undef.net, so I'd been behind at times on keeping undef.net
up to date.

The other thing was, I couldn't cheat & just put files in
http://speechio.undef.net/dl & point to the directory -- have to actually
have an index.html, which gave me an extra piece to update.  So I wrote a
perl script.  It's called mkindex, and it's in the dl directory w/
everything else.  Real simple -- generates an html file w/ a link to every
file in the directory by its name.

Then I wrote a bash script (~/mirror):

##################################################
#!/bin/sh
cd /home/s/speechio/tmp
wget -r -l1 http://www.op.net/~darxus/speechio/dl/
cd /home/s/speechio/public_html/dl
./mkindex > index.html
##################################################

~/tmp/www.op.net/%7Edarxus/speechio is a simlink to ~/public_html, so it's
just using wget to mirror op.net directly.  Seems to work very well, but
I've never done anything like this before, and wanted to see if any of you
had any suggestions.

I intend to run the mirror script manually whenever I update the page at
op.net.  Should I put it in a cron job ?  If so, how often ?  (if you
wondering, wget doesn't re-download unmodified files) 
__________________________________________________________________
PGP fingerprint = 03 5B 9B A0 16 33 91 2F  A5 77 BC EE 43 71 98 D4
            darxus@op.net / http://www.op.net/~darxus
                         Far Beyond Reason