bacula-alma8-mariadb/pre-mysql.sh
Eliezer Croitoru 9f4e1b3e8c 1
2024-01-27 22:39:10 +00:00

9 lines
222 B
Bash
Executable File

#!/usr/bin/env bash
# Preparation of the folder
rm -rf /opt/mysql-backup/
mkdir -p /opt/mysql-backup/
# Backup
mysqldump -u dump -ppassword --all-databases --routines > /opt/mysql-backup/dump$(date +%Y-%m-%d_%H:%M).sql