myContactCenterManual

Backing up and maintaining the database

How to back up and restore the server's databases, manage backups, maintain the database and delete old statistics data — and what you do yourself with the tools of your database system.

The server works with two databases — see Databases:

  • the configuration database on the SQL Server with configuration, license data, statistics and alarms,
  • the Monitoring Database with the tickets: emails, chats and call data.

For the databases, the Settings tab has the Database group. Its commands apply to the server you have selected in the navigation pane:

Command Effect
Create backup backs up the configuration database and, if set up, the Monitoring Database together
Show Backups lists the backups; from here you restore one
Maintenance rebuilds the indexes and shrinks the database files
Clean up database deletes statistics data up to a date

Maintenance and Clean up database are available to every logged-in administrator; there is no separate permission for them. Only main administrators may create, restore and delete a backup.

Creating a backup

  1. Click Create backup.
  2. Confirm the Create backup prompt with Yes.

The server stops, the databases are backed up, and the server starts again. The progress is reported by the information area under Backups and, as long as it is open, by the Backups window: Preparing database maintenance., Stopping the server., Processing databases., Starting the server. and finally Backup completed. Until the server is running again, Maintenance status is unavailable. may appear; this does not mean that the job has failed. Reconnect afterwards and check the job.

As long as a job is running, you cannot start another one.

In the folder C:\ProgramData\ilogixx GmbH\myContactCenter\Server\Backup of the server, a backup set is created, a file mycc-<ID>.mccbackup. It describes what belongs together and refers to the archives of the databases:

  • Archives on Microsoft SQL Server are written by the SQL Server itself to its default folder for backups. If it runs on a separate computer, they are located there.
  • For a Monitoring Database on PostgreSQL, the computer of the server needs pg_dump.exe and pg_restore.exe in the major version of the PostgreSQL server, usually from an installation under C:\Program Files\PostgreSQL.

In standby operation, the command only backs up the databases of the selected server.

The backup contains configuration, license data, statistics and alarms and, if set up, the Monitoring Database with the tickets. It does not contain

  • recordings and voicemails,
  • exported reports,
  • the settings files of the services on their computers.

Showing backups

Show Backups opens the Backups window with all files in the backup folder of the server — including those not created with Create backup, for example during an update. It also shows the state of the last job.

  • Restore restores the selected backup, see below.
  • Delete immediately deletes a selected .bak file and closes the window. You cannot delete a backup set (.mccbackup) here, nor move it as a single file, because the archives are located on the computer of the database.
  • Cancel closes the window.

Restoring a backup

Restore replaces the current databases. Everything that has happened since the backup is lost.

  1. Open Show Backups and select the backup.
  2. Click Restore.
  3. Read the prompt and confirm it with Yes.

The process reports its progress as when backing up and ends with Restore completed. Beforehand, myContactCenter checks the backup; only then does it stop the server and create a safety copy of the current databases.

  • Older backups are brought up to the level of the installed version by the restore itself. It rejects a backup of a newer version: The database is newer than the installed server.
  • If a Monitoring Database is set up, you need a complete backup set with both databases. Old .bak files can only be restored without a Monitoring Database.
  • If something goes wrong, myContactCenter plays back the safety copy and starts the server again; it then reports Maintenance failed. The server reported an error. If that fails too, Manual recovery is required. Further maintenance is blocked. appears. The server then does not start by itself. Contact your reseller or ilogixx support.

A backup that you created with the tools of the database system is also restored there, for example in SQL Server Management Studio; the server must not use the database while you do so.

Restoring on another server also requires SQL logins, files and new server addresses. The complete sequence is described in Moving to a new server.

Maintenance

Maintenance starts the maintenance of the configuration database; the Administration reports Maintenance started. Maintenance runs in the background and does not report when it has finished. In standby operation, the partner maintains its database at the same time. If maintenance is already running, starting it again has no effect.

Maintenance

  1. rebuilds all indexes,
  2. shrinks the database files and
  3. then sets the database to the full recovery model.

The server starts maintenance automatically according to the maintenance plan of the server configuration. Schedule it there for quiet times, for example at night.

Cleaning up the database

Over time, the database collects a lot of statistics: the history of every agent and every conversation, from which reports and dashboards are created. myContactCenter only deletes any of it by itself if you have set up retention periods. Clean up database deletes what lies before a date:

  1. Click Clean up database.
  2. Under Clean Database up to date, select the date. The default is the date one year ago. Everything that started before this day is deleted.
  3. If necessary, select Agents, Skills or Languages; All Agents, All Skills and All Languages each select all entries. Without a selection, the cleanup applies to all data.
  4. Click OK and confirm You want to clean up the database? with OK.

With a selection, the cleanup only deletes the data of the selected entries. If you select in several lists, each selection applies on its own: the data of the selected skills is deleted, plus that of the selected languages and that of the selected agents — not only what matches all of them at once. For agents, the cleanup deletes their status history and their steps in the conversations; the statistics of the conversations themselves are kept.

Tickets, attached data, alarms, recordings and the configuration are not affected. In standby operation, the partner cleans up its database at the same time.

The cleanup runs in the background. At the end, the Administration reports Database cleanup results: under Deleted entries, the Total and, per selection, For selected skills, For selected languages and For selected agents. The server records every cleanup in the database with the date, the name of the administrator and the time.

    ↑ ↓ select · Enter open · Esc close