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 check version of Mariadb?
- How to use UUID in Mariadb?
- What type to use for a year in Mariadb?
- Mariadb partitioning example
- How to get yesterday's date in Mariadb?
- How to use XA transactions in Mariadb?
- How to use variables in Mariadb?
- How to list users in Mariadb?
- How to use the WITH clause in Mariadb?
- How to get current year in Mariadb?
See more codes...