Keep your data safe

Keep your data safe

Overview

In this article you can find our best practice to keep a backup of your Motion server configuration and logs (report tables)

Please note the following steps are related to a standard installation. If you use custom script or application and/or custom DB on the XCALLY Motion server, you need to backup them according with your needs.

Basically you need to backup the Motion DB.Β 

XCALLY Tables

Some tables could have a big size, such as the log and the report tables. You can decide to move the entire DB or exclude those tables.

Log and report tables are:

cdr

voice_queues_log

report_* (all the tables with prefix report_)

Further information about the Motion DB tables here:Β Motion DB Tables

Β 

Folder copy

Keep a copy of the entire folder /var/opt/motion2

  • The folder /var/opt/motion2/server/files contains audio files, mail attachments, etc.

  • The configuration fileΒ .env under /var/opt/motion2/ contains the main XCALLY Motion configuration parameters and the key to decrypt the recordings files (if you use the encryption). It's very important you keep a copy of that file.

Asterisk configuration

  • Copy the entire folder /etc/asterisk

  • In particular, keep a copy of all the files named _xcally_ in the /etc/asterisk folder (trunk configuration, custom extensions, etc..)

Audio Files and Recordings

Β 

Voice Recordings

  • the recording files are saved under /var/spool/asterisk/monitor

Voicemail

  • the voicemail messages and configurations are saved under /var/spool/asterisk/monitor/voicemail

Asterisk Audio Files

  • the Asterisk audio files are saved under /var/lib/asterisk/sounds

You can save a copy of the entire directory /var/lib/asterisk in case you are using custom moh, etc