Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml,v diff -u -N -r1.8 -r1.9 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml 17 Jul 2006 05:38:37 -0000 1.8 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml 7 Aug 2017 23:47:54 -0000 1.9 @@ -16,7 +16,7 @@ To run a database on a different machine than the webserver requires changes to the database configuration file - and access control file, and to the OpenACS service's + and access control file, and to the OpenACS service's configuration file. @@ -33,7 +33,7 @@ controlled ... (add notes from forum post) - Change the OpenACS service's configuration file to + Change the OpenACS service's configuration file to point to the remote database. Edit /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/config.tcl and change @@ -90,8 +90,8 @@ Dropping a PostgreSQL tablespace is easy. You have to stop any AOLserver instances that are using the database that you wish to - drop. If you're using daemontools, this is simple, just use the - 'down' flag (-d). If you're using inittab, you have to comment out + drop. If you're using daemontools, this is simple, just use the + 'down' flag (-d). If you're using inittab, you have to comment out your server in /etc/inittab, reread the inittab with /sbin/init q, and then restart-aolserver @@ -114,18 +114,18 @@ data can make a tremendous difference in the execution speed of queries. This command can also be run from cron, but it probably makes more sense to run this command as part of your nightly backup - procedure - if "vacuum" is going to screw up the database, you'd - prefer it to happen immediately after (not before!) you've made a + procedure - if "vacuum" is going to screw up the database, you'd + prefer it to happen immediately after (not before!) you've made a backup! The "vacuum" command is very reliable, but conservatism is - the key to good system management. So, if you're using the export - procedure described above, you don't need to do this extra + the key to good system management. So, if you're using the export + procedure described above, you don't need to do this extra step. Edit your crontab: [joeuser ~]$ crontab -e - We'll set vacuum up to run nightly at 1 AM. Add the following + We'll set vacuum up to run nightly at 1 AM. Add the following line: 0 1 * * * /usr/local/pgsql/bin/vacuumdb $OPENACS_SERVICE_NAME