MariaDB
Since: v2.8.0
GoBackup uses mariadb-backup
utility to export MariaDB database into a custom backup format, consisting of files with extensions like .frm for table structure files and .ibd for InnoDB data files.
Install tool
So you need to install mariadb-backup
first.
$ sudo apt install mariadb-backup
Config keys
type: mariadb
host
- MariaDB server host, default:localhost
port
- MariaDB server port, default:3306
socket
- MariaDB server, if use socket, default: ``database
- database name, default: ``username
- default:root
password
args
- Additional options formariadb-backup
utility.
https://github.com/gobackup/gobackup/blob/main/database/mysql.go (opens in a new tab)
Example
models:
my_app:
databases:
my_app:
type: mariadb
host: localhost
port: 3306
database: my_app_production
username: root
password: root