mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-12-22 21:55:03 +01:00
Changed regex condition
This commit is contained in:
parent
cc0496ffa8
commit
caf78a82be
@ -74,7 +74,7 @@ for volume_name in volume_names:
|
||||
# Folder to which the volumes are copied
|
||||
volume_destination_dir = version_dir + volume_name
|
||||
# Database name
|
||||
database_name = re.split("_|-", container)[0]
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user