V3 Keep your data safe

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 followng 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. 

Some tables could have a big size, specially the log and the report tables so you can decide if 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



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

You may need some files save into that folder, specially

  • the entire folder /var/opt/motion2/server/files (it contains audio files, mail attachments, etc)

  • The configuration file .env under /var/opt/motion2/

The file contains the main XCALLY Motion configuration parameters and the key to decrypt the recordings files (if you use the encryption)  so it's very important you keep a copy of that file.



Asterisk configuration

  • copy the entire folder /etc/asterisk

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



Voice Recordings

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

Voicemail

  • the voicemail messages and configuration 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