Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'API MariaDB Backup utilizzata da Backup e RE include i seguenti
endpoint:
CBT e snapshot LVM di Linux: API MariaDB Flush tables with read lockUnlock tables.
Backup basati su file: API MariaDB mysqldump. In questo modo viene eseguito il backup completo del database in formato di backup. Al momento del recupero, l'API restore db recupera il database sovrascrivendo fisicamente l'area dati.
Backup dei log di MariaDB: durante un backup dei log, Backup e RE copia fisicamente tutti i log binari di MariaDB. L'API MariaDB Purge binary logs before
viene utilizzata per eliminare i log binari.
Come funziona: backup basato su volume di backup e RE con CBT di Linux
Nel bitmap vengono monitorati solo i blocchi modificati, non sono presenti operazioni di copia su scrittura o con un'intensità di I/O elevata.
I passaggi riportati di seguito descrivono la procedura per eseguire il backup e il recupero dei dati con le immagini di backup basate su volume e la CBT:
L'agente di backup e RE dispone della tecnologia CBT per monitorare i blocchi modificati nell'area dei dati del database.
L'agente chiama l'API di database per bloccare o mettere in pausa il database per il backup dei dati.
L'agente crea uno snapshot LVM dell'area dati del database e sintetizza un bitmap.
Chiamata dell'agente all'API del database per sbloccare il database.
L'agente copia i blocchi modificati nell'appliance di backup/ripristino, che elimina lo snapshot e cataloga il backup.
L'appliance emette uno snapshot interno e sintetizza un backup completo virtuale point-in-time.
Per il recupero dei dati, Backup e RE montano immediatamente un disco di staging riscrivibile
e mettono il database online.
Come funziona: backup basato su file
I passaggi seguenti descrivono la procedura per eseguire il backup e il recupero dei dati con le immagini di backup basate su file:
L'agente di Backup e RE viene dispiegato nel server di database.
Monta il disco di staging sul server di database.
Esegui il backup completo utilizzando il comando dump backup, scrivendo il backup sul disco montato.
Backup e RE acquisiscono uno snapshot interno.
I backup dei log vengono eseguiti in modo simile direttamente dal file system in base alla pianificazione configurata.
Per il recupero dei dati, Backup e RE monta immediatamente il disco di staging sul
server del database e avvia l'operazione di ripristino del database.
I log possono essere riprodotti fino a qualsiasi momento dopo il ripristino del database.
Questa pagina fa parte di una serie di pagine specifiche per la protezione e il recupero dei database MariaDB con il backup e RE. Puoi trovare ulteriori informazioni nelle seguenti pagine:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eBackup and DR uses MariaDB APIs like \u003ccode\u003eFlush tables with read lock\u003c/code\u003e, \u003ccode\u003eUnlock tables\u003c/code\u003e, and \u003ccode\u003emysqldump\u003c/code\u003e for Linux CBT, LVM snapshot, and file-based backups.\u003c/p\u003e\n"],["\u003cp\u003eVolume-based backups with Linux CBT track changed blocks without copy-on-writes, utilizing LVM snapshots and database APIs to pause/unpause during the backup process.\u003c/p\u003e\n"],["\u003cp\u003eFile-based backups employ a staging disk mounted on the database server, where \u003ccode\u003emysqldump\u003c/code\u003e writes the full backup, and log backups are performed directly from the file system.\u003c/p\u003e\n"],["\u003cp\u003eRecovery for both volume-based and file-based methods involves instant mounting of a staging disk, with the option to play logs to any point in time after the file-based database is restored.\u003c/p\u003e\n"],["\u003cp\u003eBackup and DR provides comprehensive documentation on protecting and recovering MariaDB databases, including preparation, policy creation, application settings, and workflow creation.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service for MariaDB\n\nThe MariaDB Backup API used by Backup and DR includes the following\nendpoints:\n\n- **Linux CBT and LVM snapshot** : MariaDB `Flush tables with read lock`\n `Unlock tables` API.\n\n- **File-based backups** : MariaDB `mysqldump` API. This provides the full\n backup of the database in backup format. On recovery, the `restore db` API\n recovers the database by physically overwriting the data area.\n\n- **MariaDB log backup** : During a log backup, Backup and DR physically copies\n all the MariaDB binary logs. The MariaDB `Purge binary logs before`\n API is used to purge the binary logs.\n\nHow it works: Backup and DR volume-based backup with Linux CBT\n--------------------------------------------------------------\n\nOnly changed blocks are tracked in the bitmap, there are no copy-on-writes or\nI/O-intensive operations.\n\nThe following steps describe the process for how to perform data backup and\nrecovery with volume-based backup images and CBT:\n\n1. The Backup and DR agent has CBT to track changed blocks in the database data\n area.\n\n2. The agent calls the database API to freeze or pause database for data backup.\n\n3. Agent creates LVM snapshot of database data area and synthesizes a bitmap.\n\n4. Agent call to database API to unfreeze database.\n\n5. Agent copies changed blocks to backup/recovery appliance, which then deletes\n the snapshot and catalogs the backup.\n\n6. The appliance issues an internal snapshot and synthesizes a point-in-time\n virtual full backup.\n\n7. For data recovery, Backup and DR instantly mounts a rewritable staging disk\n and brings the database online.\n\nHow it works: file-based backup\n-------------------------------\n\nThe following steps describe the process for how to perform data backup and\nrecovery with file-based backup images:\n\n1. Backup and DR agent is deployed in the database server.\n\n2. Mount staging disk on the database server.\n\n3. Invoke full backup using the dump backup command, writing the backup\n to the mounted disk.\n\n4. Backup and DR takes an internal snapshot.\n Log backups are done in a similar fashion directly from the file-system at\n any schedule that you configure.\n\n5. For data recovery, Backup and DR instantly mounts the staging disk to the\n database server and initiates the database restore operation.\n Logs can be played to any point in time after the database is restored.\n\nWhat's next\n-----------\n\n[Prepare the database for Backup and DR](/backup-disaster-recovery/docs/configuration/otherdb-prep-database)\n\nOther documentation for Backup and DR for MariaDB\n-------------------------------------------------\n\nThis page is one in a series of pages specific to protecting and recovering\nMariaDB databases with Backup and DR.\nYou can find additional information in the following pages:\n\n- [Backup and DR for MariaDB](/backup-disaster-recovery/docs/concepts/mariadb-intro)\n- [Prepare the database for Backup and DR](/backup-disaster-recovery/docs/configuration/otherdb-prep-database)\n- [Add a MariaDB database host and discover databases](/backup-disaster-recovery/docs/configuration/otherdb-add-host)\n- [Define policy templates and resource profiles](/backup-disaster-recovery/docs/create-plan/create-template)\n- [Set application details and settings](/backup-disaster-recovery/docs/backup/app-details-settings-otherdb)\n- [Check staging disk format and backup method](/backup-disaster-recovery/docs/backup/backup-method-staging-disk-otherdb)\n- [Protect the MariaDB database and its logs](/backup-disaster-recovery/docs/backup/otherdb-protect)\n- [Mount a MariaDB database](/backup-disaster-recovery/docs/access-data/otherdb-mounts)\n- [Recover MariaDB Backups](/backup-disaster-recovery/docs/restore-data/otherdb-restore)\n- [Create a MariaDB Backup and DR Workflow](/backup-disaster-recovery/docs/access-data/otherdb-workflow)"]]