Postgresql dump SS archive script
Dump, bzip, and upload a postgres database to strongspace. Via Ubernostrum
#!/usr/bin/bash FILENAME=b_list-`/usr/xpg4/bin/date +%Y%m%d`.sql.bz2 cd /home/myuser/dumps /opt/local/bin/pg_dump -U db_username db_name | /usr/bin/bzip2 > $FILENAME /usr/bin/scp $FILENAME me@strongspace:/my/backup/dir/