Changed docker data volume to project specific name
This commit is contained in:
parent
2f29555240
commit
5ae3ac82e1
6 changed files with 515 additions and 3 deletions
12
tools/dump_pfosten.py
Normal file
12
tools/dump_pfosten.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# This script needs mysqldump to be installed
|
||||
# apt install mysql-client
|
||||
|
||||
import os
|
||||
import datetime
|
||||
|
||||
str_now=datetime.datetime.now().strftime('%Y-%m-%d_%H%M%S')
|
||||
|
||||
filename="pfosten_"+str_now+".sql"
|
||||
print("Dumping "+filename)
|
||||
cmd="""mysqldump -ud0274241 -psuperpfosten! -h hoschis-tippspiel.de d0274241 > """+filename
|
||||
os.system(cmd)
|
||||
Loading…
Add table
Add a link
Reference in a new issue