Sqldump actions were simplefied

This commit is contained in:
Alexandr
2018-01-29 17:52:33 +01:00
parent b2153a394b
commit e7209258a4
2 changed files with 8 additions and 5 deletions

3
sqldump.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
mysqldump --login-path=localhost rutracker_bot --no-data | \
sed -e 's/AUTO_INCREMENT=.* /AUTO_INCREMENT=1 /g' -e 's/latin1/utf8/g' > schema.sql