#!/bin/bash # Database Backup Configuration File # This file contains all database credentials and FTP settings. # Edit this file to add/remove databases or change credentials. # ============================================================================ # DATABASE CONFIGURATION # ============================================================================ # Multiple databases: Use comma-separated lists (keep same order for all) # Each position corresponds to: database name, user, password, host DB_LIST="starzcloexerp2,starzcloexerp,starzcloexedi,starzcloexerplab" DB_USERS="starzcloexerp2,starzcloexerp,starzcloexedi,starzcloexerplab" DB_PASSWORDS="StarzERP2023,2019STARZerp,EDI2018Bizerte,2019STARZerp" DB_HOSTS="starzcloexerp2.mysql.db,starzcloexerp.mysql.db,starzcloexedi.mysql.db,starzcloexerplab.mysql.db" # Optional: MySQL port (leave empty for default 3306) DB_PORT="" # ============================================================================ # BACKUP RETENTION # ============================================================================ # Number of days to keep old backups before automatic deletion RETENTION_DAYS="30" # ============================================================================ # FTP MIRROR CONFIGURATION (Optional) # ============================================================================ # Set FTP_ENABLED to "false" to disable FTP mirroring FTP_ENABLED="true" FTP_HOST="10.0.10.125" FTP_PORT="21" FTP_USER="starz1" FTP_PASSWORD="FTPserverSTARZ22" FTP_BASE_PATH="/database_backups"