missing change
This commit is contained in:
parent
18c53987ce
commit
a34b9bc7df
@ -12,10 +12,10 @@ import json # For reading JSON config
|
||||
|
||||
# Initialize a message list
|
||||
email_body_parts = []
|
||||
BACKUP_DIR = "/var/www/apps/db-backup-script-test/backups" # Example default
|
||||
BACKUP_DIR = "/var/www/apps/db-backup-script/backups" # Example default
|
||||
MYSQLDUMP_PATH = "/usr/bin/mysqldump" # Example default
|
||||
LOG_DIR = "/var/www/apps/db-backup-script-test/logs"
|
||||
LOG_FILE = "/var/www/apps/db-backup-script-test/logs/mysql_backup.log"
|
||||
LOG_DIR = "/var/www/apps/db-backup-script/logs"
|
||||
LOG_FILE = "/var/www/apps/db-backup-script/logs/mysql_backup.log"
|
||||
|
||||
|
||||
# Assuming your JSON file is named 'config.json' and is in the same directory
|
||||
@ -44,10 +44,10 @@ def set_platform_specific_paths(config):
|
||||
else:
|
||||
print("Error: Linux paths not configured in JSON.")
|
||||
# Handle this error appropriately, e.g., exit or use default Linux paths.
|
||||
BACKUP_DIR = "/var/www/apps/db-backup-script-test/backups" # Example default
|
||||
BACKUP_DIR = "/var/www/apps/db-backup-script/backups" # Example default
|
||||
MYSQLDUMP_PATH = "/usr/bin/mysqldump" # Example default
|
||||
LOG_DIR = "/var/www/apps/db-backup-script-test/logs"
|
||||
LOG_FILE = "/var/www/apps/db-backup-script-test/logs/mysql_backup.log"
|
||||
LOG_DIR = "/var/www/apps/db-backup-script/logs"
|
||||
LOG_FILE = "/var/www/apps/db-backup-script/logs/mysql_backup.log"
|
||||
|
||||
try:
|
||||
os.makedirs(BACKUP_DIR, exist_ok=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user