Safeguard your Percona Server data with TokuDB Hot Backup! This blog post unveils a seamless hot backup solution, enabling backups while your database remains operational. Discover installation, configuration, and recovery processes for worry-free data protection.
TokuDB is a high compression Engine for MySQL. It uses Fractal tree pages and huge data pages to achieve the
The Percona TokuBackup library intercepts system calls that write files and duplicates the writes on backup files. It does this while copying files to the backup directory.
- The TokuBackup library must be installed into the mysqld server to use it. It comes with the default installation of Percona servers ( not activated ).
- The process of backup and the details about the destination directory can viewed be in processlist.
- We will start will installation of tokubackup [ Hot Backup ].
Note
- To Enable Tokudb in percona server check our previous blog.
- The Tokudb Backup is now a plugin.
Installing Backup Tool
After installing the plugin validate it inside MySQL
Initializing the backup:
Check the backup process in processlist:
If you have enabled both data_dir and tokudb_data_dir in cnf file it will take the backup of both data directory.
If you have enabled only tokudb_data_dir in cnf file it will have only that data_dir file as backup.
Restoring the backup:
Restoring the backup is simple.
- Stop the percona server.
- Move the backup directory (/home/mydbops/backup_dir/tokudb_data_dir/) into data directory (/var/lib/mysql/).
- Make sure of the permission in data directory as mysql.
- Start the Percona server.
Note:
- If you are using TokuDB engine have to use mysqldump or any other backup tool (mydumper,mysqlpump).
- The TokuDB engine doesn’t support xtrabackup.
- Toku backup does not have any other forms like incremental backup or partial backup.
- The Point in time recovery is possible if we have noted the binary log and its position.It can be automated by designing a good backup program.
Elevate your Percona Server management with Mydbops' open-source database management services. Simplify backups, optimize performance, and gain valuable insights.
{{cta}}