Index: openacs-4/packages/acs-core-docs/www/automated-backup.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/automated-backup.adp,v diff -u -N -r1.4 -r1.4.2.1 --- openacs-4/packages/acs-core-docs/www/automated-backup.adp 25 Apr 2018 08:38:27 -0000 1.4 +++ openacs-4/packages/acs-core-docs/www/automated-backup.adp 2 Mar 2019 19:30:04 -0000 1.4.2.1 @@ -1,5 +1,5 @@ -{/doc/acs-core-docs {ACS Core Documentation}} {Automated Backup} +{/doc/acs-core-docs/ {ACS Core Documentation}} {Automated Backup} Automated Backup

Automated Backup

The recommended backup strategy for a production sit is to use an automated script which first backs up the database to a file in -/var/lib/aolserver/$OPENACS_SERVICE_NAME/database-backup -and then backs up all of /var/lib/aolserver/$OPENACS_SERVICE_NAME - to a -single zip file, and then copies that zip file to another +/var/lib/aolserver/$OPENACS_SERVICE_NAME/database-backup +and then backs up all of /var/lib/aolserver/$OPENACS_SERVICE_NAME + +to a single zip file, and then copies that zip file to another computer.

  1. Make sure that the manual backup process described above -works.

  2. Customize the default backup script. Edit /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/backup.sh +works.

  3. Customize the default backup script. Edit /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/backup.sh with your specific parameters.

  4. Make sure the file is executable:

    chmod +x backup.sh
  5. Set this file to run automatically by adding a line to root's crontab. (Typically, with export EDITOR=emacs; crontab -e.) This example runs the backup script at 1:30 am every day.

    -30 1 * * *        sh /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/backup.sh
    +30 1 * * * sh /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/backup.sh