Welcome Guest | Login

Postgresql 8.0 Setup?

Hi there,

It looks like there's already a PostgreSQL instance that everyone has 'jailed' access to.  Does this mean I don't have to worry about backups and setting AUTOVACUUM?  How much housekeeping does the database need?

2007-10-24 07:09 PM

Wsargent- AUTOVACUUM is not enabled on the server.  You'll be able to mane your PostgreSQL databases using your cPanel control panel > PostgreSQL Databases > phpPgAdmin .

2007-10-24 08:24 PM

Okay -- I assume I can still set up a cron job by hand.

What about database backups?  Are they taken care of automatically?

2007-10-24 08:48 PM

We cannot gaurantee proper backups of your databases although we have backups running daily. You may want to ensure that you're backing up your databases occasionally to avoid risk of data loss.  

2007-10-24 09:32 PM

Okay, here's the documentation for Postgresql 8.1:
http://www.postgresql.org/docs/8.1/static/maintenance.html

and I'm going to set it up to VACUUM every day at 1 am:

0 1 * * * /usr/bin/vacuumdb tersesy_tsprod

2007-10-26 01:28 PM

And here's what I do for the database backup:

0 0 7 * * /usr/bin/pg_dump tersesy_tsprod | /usr/bin/gzip > /home/tersesy/pgbackup/backup.gz

That doesn't really help me if there's a bad hard disk, but it's a start.  Do you have backups to remote sites?

2007-10-26 01:34 PM

Wsargent - Hostingrails has remote backup servers but it's strongly recommended that you keep your important backups offline, to be on the safer side.

2007-10-26 01:48 PM

Okay... I'm assuming that means I should have an rsync script running on another machine, or a remote backup service.

Backups are hard. :-(

2007-10-26 01:53 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!