Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
Applies to Subscription Management Tool 11.3

9 Backup of the SMT Server

Creating backups of the SMT server regularly can help restore it quickly and reliably in the case of the server failure.

There are three main areas to back up on the SMT server:

  • Configuration files

  • Package repositories

  • The database

9.1 Configuration Files and Repositories

The SMT server configuration is stored in the /etc/smt.conf and /etc/smt.d/smt-cron.conf files.

Package repositories are stored under the /srv/www/htdocs/repo/ directory. As you can mirror the repositories on the restored server as well, backing them up is necessary only if you are using repository staging (see Section 3.5, “Testing and Filtering Update Repositories with Staging”).

Use your preferred tool to back up the configuration and repository files.

9.2 The Database

SMT uses the MariaDB database to store information about clients, registrations, machine data, which catalogs are enabled for mirroring, or custom catalogs. Unlike the configuration files and repositories, the database information cannot be recovered without a valid backup.

Standard way to back up the SMT database is to create a cron job that performs an SQL dump into a plain text file:

mysqldump -u root -p smt_db_password smt > /backup_dir/smt-db-backup.sql

Then include the resulting file to your normal backup jobs.

Print this page