Setting Up Vocera Analytics / Backing Up Vocera Analytics |
This section provides the steps to perform backing up the database (MariaDB) data. It also provides the steps to schedule a regular backup in a Windows scheduler.
To back up MariaDB data, run the following script on Vocera Analytics server:
rem create backup folder if not exist if not exist %VA_HOME%\backup mkdir %VA_HOME%\backup rem format is yyyymmdd_hhmmssss set datetime=%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2% %VA_HOME%\MariaDB\bin\mysqldump -uanalyticsuser -pDBPassword -B ldg vocera_analytics vocera_meta > "%VA_HOME%\backup\db-backup_%datetime: =0%.sql"
The following section provides more information about the script:
If this directory does not exist, then the script creates the directory. However, you can change this directory.
The default user is used to backup MariaDB.
To schedule a backup, perform the following steps:
The Task Scheduler is displayed.
The Task Scheduler program opens.
The Create Basic Task Wizard appears.
Click Browse and select the batch file you need to run.
The Finish screen appears.
A basic task is created.
This section describes the steps to restore Vocera Analytics database.
To restore MariaDB data, perform the following tasks:
%VA_HOME%\MariaDB\bin\mysql -u analyticsuser -p DBPassword < C:\VoceraAnalytics\backup\db-backup_20180301_00544270.sql
The following section provides more information about the script:
The default user is used to backup MariaDB.
The administrator must provide the exact path of the database backup file.