Chapter 5. Recovering A Working Server from Backup Tapes

  1. If you have an existing machine that is already fully prepared - for example, if you have already done Installation Guide and now you want to add a production server to the machine that's already hosting the development server, skip this step. Otherwise, do steps 1 through 5 from Installation Guide.

  2. Restore the /web/openacs-prod directory from backup. This assumes that you are recovering from backups on the same machine. As root:

    su - nsadmin
    cd /web
    tar xjf /backup/2003-01-04-yourserver--web-openacs-prod-backup-full.tar.bz2
    exit
    
  3. Restore the database from backup. First, create an empty database. Then load some initial functions (see this forum post for explanation). Then restore the backup file. As root:

    su - nsadmin
    createdb openacs-prod
    psql -f /web/openacs-prod/packages/acs-kernel/sql/postgresql/postgresql.sql openacs-prod
    psql openacs-prod < /backup/2003-01-04-yourserver-openacs-prod.dmp
    exit
    
  4. Recover the control files from backup and set them up. As root:

    su - nsadmin
    cd /web
    tar xjf /backup/2003-01-04-yourserver--usr-local-aolserver-backup-full.tar.bz2
    cp usr/local/aolserver/openacs-prod.tcl /usr/local/aolserver
    chmod 660 /usr/local/aolserver/openacs-prod.tcl 
    mkdir -p /usr/local/aolserver/daemontools/openacs-prod
    cp usr/local/aolserver/daemontools/openacs-prod/run /usr/local/aolserver/daemontools/openacs-prod/run 
    chmod 700 /usr/local/aolserver/daemontools/openacs-prod/run 
    exit 
    rm -rf /web/usr
    
  5. Restart the server. As root:

    ln -s /usr/local/aolserver/daemontools/openacs-prod /service 
    sleep 10
    svgroup nsadmin /service/openacs-prod
    
  6. Browse to http://yourserver and verify that it is up and working.

Add a comment
Last modified: Fri May 07 10:04:29 CDT 2004