gilprice.com

Restore Backup to OpenACS DB

By: Gil Price
Original: 5/6/2003
Modified: 11/9/2005

Upgrading and the upgrade failed? What do you do? If you're following the installation documents for Openacs, then you've got a backup of your database. Although recovery isn't exactly intuitive, you can do the following:

For Postgres, these are the steps to take to recover you database from backup.

  1. dropdb dbname
  2. createdb dbname
  3. psql -f /var/web/your installation directory/packages/acs-kernel/sql/postgresql/postgresql.sql dbname (ignore errors) (note: your exact directory may be different!)
  4. psql -f mydb.dmp dbname
Return Home

The views expressed within this site pretty much represent those of the author, except where otherwise attributed.

Copyright (c) 2000-2011 Gil Price. All rights reserved. I can be reached for comments at gprice[at]gilprice.com, please use [Comment] in the subject link and do include the square brackets.