DB-processing, split initial and update

This commit is contained in:
Joe Tretter
2020-03-19 08:16:56 -05:00
parent 7300f999f4
commit 886467327c
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
mkdir -p processedDBs
ls quoteStore_202*.sqlite3.gz | while read db; do
echo unpacking $db
gzip -dc $db >/tmp/xx.sqlite3
echo processing...
sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3
echo deleting...
rm /tmp/xx.sqlite3
mv $db processedDBs
done