/home/a/aquarion/sites/www.aquarionics.com/epistula/contrib/increment.sh
All my code (That is, anything not in the "Others" list on the right) is BSD licenced.
You can also view this page as text/plain or colour-coded source
#!/bin/bash
DATE=$(date +%Y-%m-%d)
WHERE=$HOME/backups
for DATABASE in "epistula" "klind"
do
mysqldump -u aquarion $DATABASE > /tmp/today.txt
bunzip2 -c $WHERE/$DATABASE/backup.bz2 > /tmp/backup.txt
diff /tmp/backup.txt /tmp/today.txt | bzip2 -c > $WHERE/$DATABASE/diff.bz2
rm /tmp/backup.txt /tmp/today.txt
done;
Using a heavily customised version of Tom's PHPCode2ValidXHTML Thing