Sick of getting trackback and comment spam on this blog, I updated the spamblock plugin, which then broke comments, because it was designed for Serendipity version 0.8. So I decided to upgrade my blog. Having already helped Dom fix his disastrous upgrade mistake, I was much wiser, and able to do it flawlessly.
Hah, whatever. I porned it horrendously. Not just the blog, but my whole page. Firstly, Serendipity's upgrade instructions are abominably vague, but I gave it various bashes, and got various errors and failures. Unlike singe, I had backed up my database properly, although even this gave me problems, since I discovered that my databases are over 100megs in size, storing every web visit I've had in like... years, and every URL pasted on IRC in months, and so on. This meant that when I tried to edit the SQL dump, both vim and joe vomitted and passed out. Finally I had some SQL which returned my database back to its pre-upgrade state, and I had a backup of my blog directory in its pre-upgrade state, which I copied back into my web directory.
Now, perhaps somebody can explain this to me. I fully intend to go and look at the source for cp(1) and at stat(2), but why does this happen?
~/tmp/bar$ ls ../foo one subdir/ three two ~/tmp/bar$ cp -R ../foo . ~/tmp/bar$ ls foo/ ~/tmp/bar$ ls -R foo/ ./foo: one subdir/ three two ./foo/subdir: ~/tmp/bar$ rm -rf foo ~/tmp/bar$ cp -R ../foo/ . ~/tmp/bar$ ls one subdir/ three two ~/tmp/bar$ ls -R one subdir/ three two ./subdir:
Simply appending a "/" to the end of the directory you are copying (which happens automatically with tab completion) means that you copy everything in the directory, instead of the directory itself. What's that all about? Anyway, the upshot of this little "quirk" is that I copied my blog into my web directory, overwriting my .htaccess and my index.php (fortunately there were no other name clashes, but it was a bitch to have to try to clean up, yay for 'ls -ltr'). I then had to grab my .htaccess and index.php from rucus's backups. When I did Dom's database restore from backups, it was just grabbing them from server's /var, which is a 4.8 gig partition. My webstuff was from shell's /home, which is a 60 gig partition, and takes slightly longer to restore from. What I'm saying is, it was a bitch.
Anyway, I eventually got everything sorted, the upgrade seems to have gone smoothly, although it broke the theming on my homepage. Serves me right, though:
<optika> D-Arb: skins are for animals.
<D-Arb> optika: skins are for keeping water in
<optika> that too.
<singe> D-Arb: and blood
<Vhata> singe: that's crazy talk
Comments
Post new comment