feat: refs #8869 differential backups #84

Merged
juan merged 6 commits from 8869-diffBackups into main 2025-04-07 08:05:52 +00:00
1 changed files with 31 additions and 4 deletions
Showing only changes of commit a73ec2b340 - Show all commits

View File

@ -1,8 +1,35 @@
#!/bin/bash
# https://mariadb.com/kb/en/mariabackup/
# https://mariadb.com/kb/en/mariabackup-options/
# https://mariadb.com/kb/en/incremental-backup-and-restore-with-mariabackup/
# https://mariadb.com/kb/en/setting-up-a-replica-with-mariabackup/
#
# Author: Juan Ferrer
# Copyright (c) 2025 Verdnatura S.L. All rights reserved.
# Version: 0.0.2
#
juan marked this conversation as resolved Outdated
Outdated
Review

Aqui

Por fin...
Poner una cabecera con la licencia GPL, explicando los cases, copyright, bla, bla, bla

Aqui Por fin... Poner una cabecera con la licencia GPL, explicando los cases, copyright, bla, bla, bla
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Backups the MariaDB database, it supports three modes:
# - Full: Full backup of all DB data, deletes all previous backups.
# - Differential: Backup changes since the last full backup, deletes all
# previous differential backups.
# - Incremental: Backup changes since the last full backup, same as
# differential, but does not erase any previous backups.
#
# References:
# - https://mariadb.com/kb/en/mariabackup/
# - https://mariadb.com/kb/en/mariabackup-options/
# - https://mariadb.com/kb/en/incremental-backup-and-restore-with-mariabackup/
# - https://mariadb.com/kb/en/setting-up-a-replica-with-mariabackup/
#
set -e
myDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"