On 03/06/2012 02:03 PM, Todd Hunt wrote:
Howdy, With a database that size you probably want to consider performing hot backups http://www.postgresql.org/docs/9.0/static/continuous-archiving.html. That way your system is never down for the reason of backups. Also you can take full backups on the weekends (or during a known slow time) and then deltas (your archived logs) daily. This speeds up your backups to a much more manageable duration. or, if you're on linux/bsd/etc you could also rsync to another server, you can configure it to only do deltas so it's not bringing over 500GB every day. If you can get a SAN with snapshot capability, you can throw the database into backup mode, snapshot it, and then take it out, making the impact of your entire backup take ~5 minutes regardless of size on disk. All that said, I would advocate for taking the LOBs out of the database. A database isn't a filesystem, it's never going to match a filesystem + nginx (or something) for serving up files. The fact that your LOBs are rarely updated strengthens the case for getting it out of the database. My philosophy is, let the database handle what it's good at: joins, transactions, updates, etc. and let filesystems / webservers handle what they're good at: serving up static content. Dave |