Backup and Restore for MariaDB ColumnStore 1.0.x

Backup and Restore for MariaDB ColumnStore 1.0.x

1. [Using mysqldump "Using mysqldump"](#using-mysqldump)
1. [Server Data File Directory Backup "Server Data File Directory Backup"](#server-data-file-directory-backup)
1. [mysqldump "mysqldump"](#mysqldump)
1. [Restoring the Server Data Files "Restoring the Server Data Files"](#restoring-the-server-data-files)

Backup/Restore Process for MariaDB ColumnStore 1.0.x

Backup Overview

The high level steps involved in performing a full backup of MariaDB ColumnStore are:

  • Suspend write activity on the system.

  • Backup the MariaDB Server data files.

  • Backup the ColumnStore data files.

  • Resume write activity on the system.

Suspend Write Activity

To suspend data writes to ColumnStore, issue the following command in the admin console:

Optionally, y can be appended as an argument to suspendDatabaseWrites to avoid the confirmation prompt.

Backup the MariaDB Server Data Files

The MariaDB Server should be backed up using one of the available backup methods described in the server backup and restore overview. Since the column store data is not stored within the MariaDB Server backup should run very quickly. Utilizing either mysqldump or just backing up the directory are straightforward options.

Using mysqldump

For example:

Note the --no-data option since only the ddl is required for column store tables. The next step will backup the data files. If tables exist using other storage engines, then this is likely not appropriate for these.

Server Data File Directory Backup

Backup can be achieved by simply copying the Server data directories under /usr/local/mariadb/columnstore/.

Backup ColumnStore Data Files

Backup can be achieved by simply copying the data directories or using vendor supplied backup or snapshot utilities for those directories. A files and directories in the data directories where N represents a unique directory such as data1, data2, etc for each PM server.

Resume Write Activity

To resume data writes to columnstore the following command can be issued in the admin console:

Optionally y can be appended as an argument to resumeDatabaseWrites to avoid the confirmation prompt.

Restore Overview

The high-level steps involved in restoring a backup are:

  • Restore the MariaDB Instance

  • Restore the ColumnStore data files.

Restoring the MariaDB Instance

The appropriate restoration method corresponding to the backup utility used should be performed first to restore the MariaDB server instance.

mysqldump

If mysqldump was utilized, then the backup script is run:

Restoring the Server Data Files

Backup can be achieved by simply copying the Server data directories under /usr/local/mariadb/columnstore/.

Restoring the ColumnStore Data Files

The data directories should simply be copied from the backup location or restored via an appropriate backup or snapshot utility.

For example:

This page is: Copyright © 2025 MariaDB. All rights reserved.

Last updated

Was this helpful?