E-Scribe News : a programmer’s blog

About Me

PBX My name is Paul Bissex, and e-scribe.com is my consulting business. I build web applications using as much open source software as possible. From September to June I teach web design and other important non-photographic professional skills to photographers. In the '90s I wrote technology commentary and reviews for magazines, newspapers, and web publications, including Wired, Salon.com, FamilyPC, the late lamented Web Review, and the Chicago Tribune. Feel free to email me.

Book Project

I'm co-authoring a book, "Python Web Development with Django", with Jeff Forcier and Wesley Chun. It will be published by Prentice Hall in July 2008, but is available for pre-ordering on Amazon now.

Colophon

This site is built on a fresh trunk checkout of Django, running on Python 2.5.1, served by Apache and mod_python. The database is SQLite. The operating system is FreeBSD, on a VPS hosted at Johncompanies.com. Comment-spam protection by Akismet. Vintage topo imagery from the Maptech archive.

Pile o'Tags

Stuff I Use

Akismet, del.icio.us, Django, dpaste.com, Emacs, FreeBSD, Freenode, jQuery, LaunchBar, MacPorts, Markdown, Mercurial, OS X, Postfix, Python, SQLite, Subversion, TextMate, Trac, Ubuntu Linux, wmii

A Django site.
(Finally!)

Copyright 2008
by Paul Bissex
and E-Scribe New Media

Movin' on up

My last post was about a server migration at work; this one's about moving my own stuff, an operation completed late last night. It was easier in that it's less critical (nobody's likely to freak out if my blog disappears for a day) but harder in that it also involved mail. I hate dealing with mail; though I did manage the switch without losing any, as far as I know. My thanks to the JohnCompanies.com staff for helping this go smoothly.

Upgrades include:

I'm also using portsnap instead of CVSup for keeping the ports tree up to date -- much cleaner.

It feels all shiny and new. A server move is a good time to do upgrades -- though not massive ones, because you don't want to be troubleshooting two things at once if things go wrong. In addition to the software freshening I did a lot of de-crufting and tidying, now that I kind of know what I'm doing. (I still remember when I started seriously being my own FreeBSD server admin, about three years ago. The filesystem was a strange sprawling city and me a doe-eyed kid fresh off the bus. /usr/local/etc/what?)

The only upgrade that was any kind of pain was MySQL. I copied over the actual database files and in a couple cases I had to revert to SQL dumps to work around some odd problems. (One example: I'm sure it was my fault, but in my case the mysql_fix_privilege_tables command was more like mysql_fuck_privilege_tables.)

I was pretty selective about what I brought over from the old server. Most of the web files I pulled over in a single big rsync fetch, but other pieces I grabbed only as needed. A one-liner like this (which I called get.sh) was handy for that:

rsync --archive -vv --rsh=ssh ME@OLDHOST:$1 /var/oldserverstuff

E.g. get.sh /usr/local/etc/postfix/main.cf would fetch a copy of the older server's main.cf to the holding pen, whence I'd move the file or extract the bits I needed. Works on whole directories, too, which is key. I'm digging rsync lately. I used it to pull down a local backup of the web files, using the new-to-me --bwlimit option to avoid hogging my house's entire broadband connection.

More specific updates to come. And let me know if you find anything I messed up!

Saturday, July 15th, 2006
+ +

Post a comment

Comments use Markdown syntax. Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.


(Will not be shared)

(Optional)