This commit is contained in:
Torsten 2025-05-31 10:57:18 +02:00
parent aab4294582
commit df708a0c29
11 changed files with 421643 additions and 1 deletions

View file

@ -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)