Skip to main content

Backup MySQL manually

You can also use the backup-db script included with Contrast to do this.

Before you begin

  • Be sure you have permission to run the backup-db script. Typically, you must be the installation owner for a Contrast, root or Windows Administrator account to do this.

  • Be sure that Contrast is running and MySQL is available.

Steps

  1. If you have not done so, configure the database backup location. Set a location for database.bk.dir by editing the $CONTRAST_HOME/data/conf/database.properties file with the encrypted editor.

  2. Run the backup command for your environment:

    • Windows:$CONTRAST_HOME\bin\backup-db.cmd

    • Linux:$CONTRAST_HOME/bin/backup-db.sh