~/bin/mysql_table_to_big_query.sh bucket_name schema_name table_name
~/bin/mysql_schema_to_big_query.sh bucket_name \[schema_name\].
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ataurrahim on github. | |
* I am ataurrc (https://keybase.io/ataurrc) on keybase. | |
* I have a public key ASAsqUF3sNyJDXwr9Ulm1gyuto8kuW3qYdd5ROGJ944zbAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TABLE_SCHEMA=$1 | |
TABLE_NAME=$2 | |
mytime=`date '+%y%m%d%H%M'` | |
hostname=`hostname | tr 'A-Z' 'a-z'` | |
file_prefix="trimax$TABLE_NAME$mytime$TABLE_SCHEMA" | |
bucket_name=$file_prefix | |
splitat="4000000000" | |
bulkfiles=200 |