mariadbHow to use xtrabackup in Mariadb?
XtraBackup is a free open source tool for performing hot backups of MariaDB databases. It can be used to back up a single database, multiple databases, or an entire MariaDB server.
To use XtraBackup, you need to install the XtraBackup package on your MariaDB server.
Once installed, you can use the following command to back up a single database:
xtrabackup --backup --target-dir=/backup/dbname
This will create a backup of the database in the /backup/dbname
directory.
To restore the database, you can use the following command:
xtrabackup --prepare --target-dir=/backup/dbname
This will prepare the backup for restoring.
Finally, you can restore the database using the following command:
xtrabackup --copy-back --target-dir=/backup/dbname
This will restore the database from the backup.
Helpful links
More of Mariadb
- How to get current year in Mariadb?
- How to check version of Mariadb?
- How to change wait_timeout in Mariadb?
- How to use UUID in Mariadb?
- How to work with XML in Mariadb?
- Working with JSON in Mariadb
- How to list available engines in Mariadb?
- How to use the WITH clause in Mariadb?
- Mariadb fulltext search example
- How to backup all databases in Mariadb?
See more codes...