{"id":18756588,"url":"https://github.com/anilkhichar/bq-table-copy-automation","last_synced_at":"2026-04-18T17:32:26.917Z","repository":{"id":78470357,"uuid":"183144783","full_name":"anilkhichar/bq-table-copy-automation","owner":"anilkhichar","description":"Copy table from one dataset to another in google big query using bash script","archived":false,"fork":false,"pushed_at":"2019-04-24T18:03:26.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T16:51:44.390Z","etag":null,"topics":["automation","bash","bash-script","big-query","bigquery","bigquery-cp","gcp","google"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anilkhichar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-24T03:58:20.000Z","updated_at":"2019-04-24T18:03:27.000Z","dependencies_parsed_at":"2023-03-13T20:13:31.151Z","dependency_job_id":null,"html_url":"https://github.com/anilkhichar/bq-table-copy-automation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anilkhichar/bq-table-copy-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkhichar%2Fbq-table-copy-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkhichar%2Fbq-table-copy-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkhichar%2Fbq-table-copy-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkhichar%2Fbq-table-copy-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anilkhichar","download_url":"https://codeload.github.com/anilkhichar/bq-table-copy-automation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilkhichar%2Fbq-table-copy-automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31977964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bash","bash-script","big-query","bigquery","bigquery-cp","gcp","google"],"created_at":"2024-11-07T17:37:20.850Z","updated_at":"2026-04-18T17:32:26.901Z","avatar_url":"https://github.com/anilkhichar.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bq-table-copy-automation\nBash script to read a mapping Yaml file \u0026 copy table from one dataset to another dataset for Google [BigQuery](https://cloud.google.com/bigquery/)\n\n## Working on\n\n- Linux\n- OSX\n\n## Getting Started\n\n### Prerequisites\n1. [Google Cloud SDK](https://cloud.google.com/sdk/docs/quickstart-linux)\n2. Make sure that [Python](https://www.python.org/downloads/) 2.7 is installed on your system: \n    \u003e`python -V`\n3. Initialize the GCloud [SDK](https://cloud.google.com/sdk/gcloud/reference/init).\n\n### Usage\n\n1. Copy the `yaml_parser.sh`, `mapping.yaml` \u0026 `bq_cp_util.sh` files locally/on the server where gcloud is installed \u0026 [authenticated](https://cloud.google.com/sdk/gcloud/reference/init).\n\n```bash\nwget https://github.com/khichar-anil/bq-table-copy-automation/blob/master/yaml_parser.sh\nwget https://github.com/khichar-anil/bq-table-copy-automation/blob/master/mapping.yaml\nwget https://github.com/khichar-anil/bq-table-copy-automation/blob/master/bq_cp_util.sh\n```\n\n2. Modify the `mapping.yaml ` as per your source \u0026 target datasets.\n`mapping.yaml `\n\n    | Yaml Attribute | Sample Value | Description  |\n    | ------|------------|------------|\n    | sourceProjectId | source-project | Source table gcp project id. |\n    | targetProjectId | target-project | Target table gcp project id. Source \u0026 target project Ids can be same, if we want to copy table withing same project. |\n    | sourceDataset | source_ds | Source table BQ dataset name.|\n    | targetDataset | target_ds | Target BQ dataset name. Source \u0026 target dataset can be same, if we want to copy table withing same dataset. |\n    | tables \u003e source | source_tbl_1 |  Source table name. |\n    | tables \u003e target | target_tbl_1 | Target table name. |\n\n3. \u003e`./bq_cp_util.sh`\n\n## Credits\n\n- This project was started based on yaml parser [here](https://github.com/jasperes/bash-yaml/blob/master/script/yaml.sh)\n- [bigquery_copy_table-cli](https://cloud.google.com/bigquery/docs/managing-tables#bigquery_copy_table-cli)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilkhichar%2Fbq-table-copy-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanilkhichar%2Fbq-table-copy-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilkhichar%2Fbq-table-copy-automation/lists"}