Potential Differences

Sat, 07 Jun 2003

More Rsync Fun

As I wrote before, I’ve been using rsync to update my blog entries between my laptop and web host. I finally got around to debugging a problem I had with my previous shell script that allowed me to download a referrer.log at the same time I uploaded my blog entries. It ended up that on second and subsequent uses, the symlink to referrer.log on the webhost got overwritten with the actual file that was on my laptop. So I added an exclusion of *.log going from my laptop to the webhost. Here’s the updated script:


#! /bin/sh
rsync -Cavz -e ssh --delete --exclude="*.log" \
/Users/gvaughn/Sites/gigavolt.net/blosxom/ \
userid@webhost.com:/WebSite/gigavolt/blosxom/

rsync -urptgovLz -e ssh --copy-unsafe-links \
userid@webhost.com:/WebSite/gigavolt/blosxom/ \
/Users/gvaughn/Sites/gigavolt.net/blosxom/ 
In general, if you’re not working directly on your web server, you owe it to yourself to learn about rsync. It’s so much better than ftp for those sorts of synchronizations you’ll want to do on a regular basis.

potential differences [/blogging] permalink

Tue, 06 May 2003

Rsync Your Referrer log

I had thought about this the other day, but it didn’t immediately work as easily as I expected. On my webhost, I’ve added a symlink to my referrer log file in my blosxom directory. I also made a custom shell script that Blapp executes to synchronize my blog entries. That script does a two way rsync so not only does it publish my latest entries from the laptop to the webhost, but it also copies the referrer log from my webhost to my laptop. The script looks like this (with some mods to protect the innocent and a line continuation backslash for presentation):


#! /bin/sh
rsync -Cavz -e ssh --delete /Users/gvaughn/Sites/gigavolt.net/blosxom/ \
userid@webhost.com:/WebSite/gigavolt/blosxom/

rsync -urptgovLz -e ssh --copy-unsafe-links \
userid@webhost.com:/WebSite/gigavolt/blosxom/ \
/Users/gvaughn/Sites/gigavolt.net/blosxom/ 
As a bonus tip, that ‘C’ in the first rsync call respects entries in $HOME/.cvsignore. I added ‘.DS_Store’ in there to keep some of that extra junk from going across.

potential differences [/blogging] permalink

Wed, 09 Apr 2003

Working the Kinks Out

I thought I’d write an entry as I’m starting out doing the customizations, and in order to get rid of the default entries. I’m not expecting many visits yet since I haven’t publicized the blog. Blapp is giving me some problems right now. It doesn’t want to accept my custom remote connection string. If I close and re-open the prefs, it reverts to the default string rather than keeping the one I entered. I’ll use Fugu until I get a chance to track the issue down. So many things to do, which reminds me …

The blog will also probably be a test-bed as a update my html skills. I haven’t really learned much new since tables were introduced. Now it’s time to learn stylesheets and dhtml. There’s an experimental flavor I’m playing with you can visit if you’re brave :-) I’m hoping to have bypassed the really messy years of incompatible browser implementations and not have to fight with those issues. Plus, I suspect whatever audience I may gain over time will have modern (read: standards compliant) browsers and I can get away with using some advanced features.

potential differences [/blogging] permalink