![Lead Image © Kran Kanthawong, 123RF.com Lead Image © Kran Kanthawong, 123RF.com](/var/ezflow_site/storage/images/archive/2016/36/setting-up-mariadb-replication-with-the-help-of-xtrabackup/po-26428-123rf-kran_kanthawong_123rf-43127141_-_abstract_technology_security_on_global_network_background_vector_illustration_resized.png/131671-1-eng-US/PO-26428-123RF-Kran_Kanthawong_123RF-43127141_-_abstract_technology_security_on_global_network_background_vector_illustration_resized.png_medium.png)
Lead Image © Kran Kanthawong, 123RF.com
Setting up MariaDB replication with the help of XtraBackup
Double Protection
Data is valuable, and owners want to protect it against loss. The first choice is usually a backup; however, the disadvantage of the classic periodic backup is that data that has changed after the last backup is lost. A potential solution is replication – that is, transferring all the changes to a storage location that is a copy of the working infrastructure. This approach also supports load balancing if the second system is made available to users for read-only access. To define the terms, I'll conduct a brief tour through the different types of replication (Figure 1).
![](/var/ezflow_site/storage/images/archive/2016/36/setting-up-mariadb-replication-with-the-help-of-xtrabackup/figure-1/131675-1-eng-US/Figure-1_large.png)
Variants
In a "standalone" instance, nothing is replicated, and "cold standby" means that the backup system only starts up after its counterpart has failed. Here, too, it is not absolutely necessary to replicate; it is sufficient if the backup system can access a storage medium that it shares with the primary system.
A "warm standby" has a primary machine that handles all the write and read operations, with a secondary machine also running and continuously
...Buy this article as PDF
(incl. VAT)