Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Automated backup

Introduction

OpenSpecimen v9.0 supported automated backup job, which can be configured on a nightly basis. The job backs up the OpenSpecimen data folder and MySQL database.

Pre-requisites

  1. Before configuring the automated backup, please make sure the backup directory path is configured in the openspecimen.properties as below

app.backup_dir=<Absolute path to the backup dir>

e.g. app.backup_dir=/usr/local/openspecimen/backup

2. The database user from which the OpenSpecimen is running should have MySQL database export privileges.

  1. If the app.backup_dir property is not mentioned, the current working directory is used to store the backup files (.tar.gz files)

  2. The database backup is only supported for the MySQL database.

  3. Database backup uses the command/binary mysqldump and requires the command to be available on the same VM as the application VM.

  4. The data directory and database backup are tar'ed and gzip'ed into a single file using the following format - yyyyMMdd_HHmmss.tar.gz

  5. Email notification is sent to IT admin and super admins when a backup fails.

  6. Last five backups will be retained.

How to configure:

  1. Navigate to → Jobs → Data Backup

  2. Select Daily and enter the date and time to run the job. The example is below.

 

 

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com