updated making directory for database dumps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jblu 2023-08-26 12:33:30 -05:00
parent 66c7597076
commit c2bb5556a3

View File

@ -82,6 +82,8 @@ if docker_command:
# Dump the databases
if db_dump:
if not os.path.exists(db_dump_tmp_path):
os.system(f"mkdir -p {db_dump_tmp_path}")
for database in databases.split(','):
os.system(f'mariadb-dump -h {db_dump_host} -u {db_dump_user} -p{db_dump_password} --skip-opt\
{database} > {db_dump_tmp_path}{database}.{now.strftime("%m-%d-%Y_%H-%M-%S")}.sql')