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 view Mariadb error log?
- How to install Mariadb on Ubuntu?
- How to get yesterday's date in Mariadb?
- What type to use for a year in Mariadb?
- How to work with XML in Mariadb?
- Mariadb partitioning example
- How to change wait_timeout in Mariadb?
- How to use XA transactions in Mariadb?
See more codes...