A. Enable incremental backup
There are two types of backups - full and incremental backups.
A full backup has a collection of all MySQL queries.
An incremental backup strategy saves the data that has been modified since the previous backup.
Learn how to set up MySQL incremental backups with Mysqldump and Binary log.
1. Enable Binary Logging in /etc/my.cnf.d/server.cnf
#log-bin=/data/mysql-bin.log
log_bin = /var/lib/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
binlog_format = mixed
# Disabling binary logging
# --binlog-ignore-db=database_name or --binlog-do-db=database_name
# skip-log-bin
cek mariadb
MariaDB [(none)]> show global variables like '%log_bin%';
+---------------------------------+--------------------------------+
| Variable_name | Value |
+---------------------------------+--------------------------------+
| log_bin | ON |
| log_bin_basename | /var/lib/mysql/mysql-bin |
| log_bin_compress | OFF |
| log_bin_compress_min_len | 256 |
| log_bin_index | /var/lib/mysql/mysql-bin.index |
| log_bin_trust_function_creators | OFF |
| sql_log_bin | ON |
+---------------------------------+--------------------------------+
7 rows in set (0.001 sec)
MariaDB [(none)]>