From 87a189efce7f19122a5e5d1aa03ce06d427bb7ee Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Mon, 4 Apr 2022 11:51:22 +0200 Subject: [PATCH] added akaunting exception --- docker-volume-backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-volume-backup.py b/docker-volume-backup.py index 3dfc032..ff30cfd 100644 --- a/docker-volume-backup.py +++ b/docker-volume-backup.py @@ -77,7 +77,8 @@ for volume_name in volume_names: database_name = re.split("(_|-)(database|db)", container)[0] # Entries with database login data concerning this container databases_entries = databases.loc[databases['database'] == database_name] - if len(databases_entries) == 1: + # Exception for akaunting due to fast implementation + if len(databases_entries) == 1 and container != 'akaunting': print("Backup database...") mysqldump_destination_dir = volume_destination_dir + "/sql" mysqldump_destination_file = mysqldump_destination_dir + "/backup.sql"