...
This commit is contained in:
parent
aab4294582
commit
df708a0c29
11 changed files with 421643 additions and 1 deletions
|
|
@ -4,9 +4,13 @@
|
|||
import os
|
||||
import datetime
|
||||
|
||||
from pathlib import Path
|
||||
homedir = Path.home()
|
||||
|
||||
|
||||
str_now=datetime.datetime.now().strftime('%Y-%m-%d_%H%M%S')
|
||||
|
||||
filename="pfosten_"+str_now+".sql"
|
||||
print("Dumping "+filename)
|
||||
cmd="""mysqldump --no-tablespaces --column-statistics=0 -ud0274241 -psuperpfosten! -h hoschis-tippspiel.de d0274241 > """+"/home/tschneider/repos/tippspiel/tools/"+filename
|
||||
cmd="""mysqldump --no-tablespaces --column-statistics=0 -ud0274241 -psuperpfosten! -h hoschis-tippspiel.de d0274241 > """+f"{homedir}/repos/tippspiel/tools/"+filename
|
||||
os.system(cmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue