updated making directory for database dumps
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
66c7597076
commit
c2bb5556a3
@ -82,6 +82,8 @@ if docker_command:
|
|||||||
|
|
||||||
# Dump the databases
|
# Dump the databases
|
||||||
if db_dump:
|
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(','):
|
for database in databases.split(','):
|
||||||
os.system(f'mariadb-dump -h {db_dump_host} -u {db_dump_user} -p{db_dump_password} --skip-opt\
|
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')
|
{database} > {db_dump_tmp_path}{database}.{now.strftime("%m-%d-%Y_%H-%M-%S")}.sql')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user