mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-24 17:21:03 +01:00
Changed mysql to mariadb
This commit is contained in:
parent
02449cb501
commit
eddccb1936
@ -75,7 +75,7 @@ for volume_name in volume_names:
|
|||||||
mysqldump_destination_file = mysqldump_destination_dir + "/backup.sql"
|
mysqldump_destination_file = mysqldump_destination_dir + "/backup.sql"
|
||||||
pathlib.Path(mysqldump_destination_dir).mkdir(parents=True, exist_ok=True)
|
pathlib.Path(mysqldump_destination_dir).mkdir(parents=True, exist_ok=True)
|
||||||
database_entry = databases_entries.iloc[0]
|
database_entry = databases_entries.iloc[0]
|
||||||
database_backup_command = "docker exec " + container + " /usr/bin/mysqldump -u " + database_entry["username"] + " -p" + database_entry["password"] + " " + database_entry["database"] + " > " + mysqldump_destination_file
|
database_backup_command = "docker exec " + container + " /usr/bin/mariadb-dump -u " + database_entry["username"] + " -p" + database_entry["password"] + " " + database_entry["database"] + " > " + mysqldump_destination_file
|
||||||
print_bash(database_backup_command)
|
print_bash(database_backup_command)
|
||||||
print("Backup files...")
|
print("Backup files...")
|
||||||
files_rsync_destination_path = volume_destination_dir + "/files"
|
files_rsync_destination_path = volume_destination_dir + "/files"
|
||||||
|
Loading…
Reference in New Issue
Block a user