Index: openacs-4/packages/acs-core-docs/www/backup-recovery.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/backup-recovery.html,v diff -u -r1.17 -r1.18 --- openacs-4/packages/acs-core-docs/www/backup-recovery.html 11 Dec 2003 23:08:45 -0000 1.17 +++ openacs-4/packages/acs-core-docs/www/backup-recovery.html 23 Jan 2004 15:09:52 -0000 1.18 @@ -1,8 +1,8 @@ -Backup and Recovery

Backup and Recovery

By Don Baccus with additions - by Joel Aufrecht

+Backup and Recovery

Backup and Recovery

By Don Baccus with additions + by Joel Aufrecht


OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

Backup Strategy

+

Backup Strategy

The purpose of backup is to enable recovery. Backup and recovery are always risky; here are some steps that minimize the chance recovery is necessary: @@ -112,10 +112,10 @@ -rw-rw-r-x 1 service0 service0 4005995 Feb 21 18:28 /var/lib/aolserver/service0/database-backup/before_upgrade_to_4.6.dmp [service0@localhost service0]$ exit [root@localhost root]# - su - service0 +

su - service0
             pg_dump -f /var/lib/aolserver/service0/database-backup/before_upgrade_to_4.6.dmp openacs-dev
             ls -al /var/lib/aolserver/service0/database-backup/before_upgrade_to_4.6.dmp
-            exit
  • Back up the file system.�Back up all of the files in the service, including the + exit

  • Back up the file system.�Back up all of the files in the service, including the database backup file but excluding the auto-generated supervise directory, which is unneccesary and has complicated permissions.

    In the tar command,

    • c create a @@ -156,7 +156,7 @@ [service0@yourserver aolserver]$ chown -R service0.web service0

    • Restore the database

      • Oracle.�

        1. Set up a clean Oracle database user and - tablespace with the same names as the ones exported from (more information).

        2. Invoke the import command

          imp service0/service0 FILE=/var/lib/aolserver/service0/database-backup/nighty_backup.dmp FULL=Y
      • Postgres.�

        Because of a bug in Postgres backup-recovery, database objects are not guaranteed to be created in the right order. To compensate, we pre-creating some critical items first, which leads to some harmless errors.

        [root@yourserver root]# su - postgres
        +                    tablespace with the same names as the ones exported from (more information).

      • Invoke the import command

        imp service0/service0 FILE=/var/lib/aolserver/service0/database-backup/nighty_backup.dmp FULL=Y
    • Postgres.�

      Because of a bug in Postgres backup-recovery, database objects are not guaranteed to be created in the right order. To compensate, we pre-creating some critical items first, which leads to some harmless errors.

      [root@yourserver root]# su - postgres
                       [postgres@yourserver pgsql]$ createuser service0
                       Shall the new user be allowed to create databases? (y/n) y
                       Shall the new user be allowed to create more new users? (y/n) y
      @@ -194,14 +194,14 @@
           (many lines omitted)
           [service0@localhost service0]$ exit
           [root@localhost root]# 
      -    su - service0
      +    
      su - service0
           cd /var/lib/aolserver/service0
           cvs commit -m "last-minute commits before upgrade to 4.6"
           cvs tag before_upgrade_to_4_6
      -    exit

      To restore files from a cvs tag such as the one used above:

      [root@localhost root]# su - service0
      +    exit

      To restore files from a cvs tag such as the one used above:

      [root@localhost root]# su - service0
           [service0@localhost service0]$ cd /var/lib/aolserver/service0
           [service0@localhost service0]$ cvs up -r current
           [service0@localhost service0]$ exit
      -    su - service0
      +    
      su - service0
           cd /var/lib/aolserver/service0
      -    cvs up -r current
    ($Id$)
  • View comments on this page at openacs.org
    + cvs up -r current
    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/maint-performance.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/maint-performance.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-core-docs/www/maint-performance.html 23 Jan 2004 15:09:52 -0000 1.1 @@ -0,0 +1,29 @@ +Diagnosing Performance Problems

    Diagnosing Performance Problems

    Some things to check first:

    ($Id: maint-performance.html,v 1.1 2004/01/23 15:09:52 joela Exp $)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/maintenance.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/maintenance.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/maintenance.html 11 Dec 2003 23:08:46 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/maintenance.html 23 Jan 2004 15:09:52 -0000 1.11 @@ -1 +1 @@ -Chapter�6.�Maintenance

    Chapter�6.�Maintenance

    Table of Contents

    Hosting Web Sites
    Database Management
    Backup and Recovery
    View comments on this page at openacs.org
    +Chapter�6.�Maintenance

    Chapter�6.�Maintenance

    Table of Contents

    Hosting Web Sites
    Database Management
    Backup and Recovery
    Diagnosing Performance Problems
    View comments on this page at openacs.org