- Step 1: Ensure that the
mariabackup
tool is installed on the target server.
- Step 2: Transfer the
mariabackup
files to the target server.
- Step 3: Prepare the backup by running:
mariabackup --prepare --target-dir=/path/to/backup/
- Step 4: Restore the backup by running:
mariabackup --copy-back --target-dir=/path/to/backup/
- Step 5: Adjust ownership and permissions of the restored files if necessary:
chown -R mysql:mysql /var/lib/mysql
- Step 6: Start the MariaDB service:
systemctl start mariadb
- Step 7: Verify the database integrity and functionality.