web-design

You are currently browsing articles tagged web-design.

Automated PGP-encrypted MySQL backups

I’ve been bad. Until recently I haven’t been backing up my MySQL database. Bad things could have happened.

Today I finally hacked up a simple script to run from cron that will automatically dump, zip, and mail backups of my MySQL tables to an email address I specify. I set up a Gmail account to send the dumps to because they’re about 8 meg each. The dumps are also encrypted using my PGP 1024-bit public key to give me a bit of security.

Since I didn’t manage to find anything similar in my Googling, I decided to post it.

#!/bin/sh # Performs a backup of MySQL, encrypts it using PGP, and mails it to a particular user # The user to mail the backup to. Should have a public key in the above user's keyring... MAIL_TO="your-backup-account@gmail.com" MAIL_TO_KEY="Your PGP key ID" # Subject of the mail. A date stamp will be appended to it MAIL_SUBJECT="[mysqldump] MySQL Backup for ” ###################################### DATESTAMP=`date %Y-%m-%d` FILENAME=”/tmp/mysqldump-$DATESTAMP.gz” # Generate the dump mysqldump –all-databases | gzip > “$FILENAME” # Encrypt it gpg –encrypt –recipient “$MAIL_TO_KEY” “$FILENAME” # Mail it! mpack -s “$MAIL_SUBJECT $DATESTAMP” -c application/octet-stream $FILENAME.gpg” “$MAIL_TO” # Remove the backups rm -f $FILENAME $FILENAME.gpg

Tags: , , , , , ,

GtdWiki

I’m proud to announce the first “preview” release of GtdWiki.

GtdWiki

GtdWiki is a specially tweaked version of PhpWiki I’ve been using for a few months now as the core of my personal implementation of David Allen’s “Getting Things Done”.

Download it, try it out, and let me know what you think.

Update: I’ve set up a online demo if you want to “try before you buy.”

Tags: , , ,

Yayyyyyyyyyyyyy!!!

WordPress 1.2 is out!! WordPress 1.2 is out!!

Now its time to upgrade…

Update: Finished upgrading… Yayyyyyy…

Tags: ,

Google’s “GMail” Beta

GMail! Clay Wood, an alumni from Eta Kappa Nu, was cool enough to hook me (and a bunch of other Michigan EECS kids) up with invitations to Google’s new (and controversial) “GMail” service.

As an experiment, I’ll be forwarding all my mail there and be using it as my primary email client. I’ll blog about my experience for those people that haven’t been lucky enough to get an account. Note the new “GMail” category on the right.

So far, it looks very cool.

Tags: , , ,

“Arial”, you are no longer my favorite font.

Apparently Arial doesn’t render the bold font-weight property all that well. So my links weren’t sticking out at all. I should use Windows machines more often, at least to check my site.

“Trebuchet MS”… You’re the one for me now.

Update: Yes, I know, a trebuchet is a type of medieval catapult. But its also a standard Windows font.

Tags:

« Older entries