diff options
author | emkael <emkael@tlen.pl> | 2020-06-03 01:29:06 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2020-06-03 01:29:06 +0200 |
commit | dd7b393f818fcf888f87866ddacba89f2635f506 (patch) | |
tree | 0142dd00072b4de412371fcb594046d2eb0be82c /fetcher | |
parent | 14d74d1f28c3657d5c320277ff754cf6217ff9ad (diff) |
Rudimentary script converting MySQL dump to SQLite3 dump
Diffstat (limited to 'fetcher')
-rwxr-xr-x | fetcher/fetch.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fetcher/fetch.sh b/fetcher/fetch.sh index e083ee5..3c69567 100755 --- a/fetcher/fetch.sh +++ b/fetcher/fetch.sh @@ -15,5 +15,10 @@ if [[ f1db.sql.gz -nt f1db.sql ]]; then zcat f1db.sql.gz | sed 's/ ENGINE=MyISAM//' > f1db.sql find -name f1db.sql.gz -printf '%f: %Td-%Tm-%TY %TH:%TM, %s bytes\n' touch -r f1db.sql.gz f1db.sql + if [ "$1" == "dump" ] + then + cp f1db.sql ../dump/original.sql + ../dump/convert.sh ../dump/original.sql > ../dump/sqlite.sql + fi fi popd > /dev/null |