{"id":21497030,"url":"https://github.com/financial-times/pac-aurora-synchroniser","last_synced_at":"2025-03-17T12:23:10.155Z","repository":{"id":55011377,"uuid":"130844200","full_name":"Financial-Times/pac-aurora-synchroniser","owner":"Financial-Times","description":"A CLI tool to synchronise the latest PAC data between two Aurora instances","archived":false,"fork":false,"pushed_at":"2023-01-10T14:02:06.000Z","size":17,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-01-23T22:13:10.302Z","etag":null,"topics":["pac","universal-publishing"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Financial-Times.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2018-04-24T11:33:45.000Z","updated_at":"2021-01-15T12:53:08.000Z","dependencies_parsed_at":"2023-02-08T19:00:56.463Z","dependency_job_id":null,"html_url":"https://github.com/Financial-Times/pac-aurora-synchroniser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Financial-Times%2Fpac-aurora-synchroniser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Financial-Times%2Fpac-aurora-synchroniser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Financial-Times%2Fpac-aurora-synchroniser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Financial-Times%2Fpac-aurora-synchroniser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Financial-Times","download_url":"https://codeload.github.com/Financial-Times/pac-aurora-synchroniser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031062,"owners_count":20386534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["pac","universal-publishing"],"created_at":"2024-11-23T16:20:43.974Z","updated_at":"2025-03-17T12:23:10.124Z","avatar_url":"https://github.com/Financial-Times.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pac-aurora-synchroniser\nA CLI tool to synchronise the latest PAC data between two Aurora instances\n\n[![Circle CI](https://circleci.com/gh/Financial-Times/pac-aurora-synchroniser/tree/master.png?style=shield)](https://circleci.com/gh/Financial-Times/pac-aurora-synchroniser/tree/master)[![Go Report Card](https://goreportcard.com/badge/github.com/Financial-Times/pac-aurora-synchroniser)](https://goreportcard.com/report/github.com/Financial-Times/pac-aurora-synchroniser)[![Coverage Status](https://coveralls.io/repos/github/Financial-Times/pac-aurora-synchroniser/badge.svg)](https://coveralls.io/github/Financial-Times/pac-aurora-synchroniser)\n\n## Introduction\n\nThis CLI tool aims to synchronize two AWS aurora instances used for PAC.\nThe software moves all the records that are more recent in a source database to a target database \nbased on the `last_modified` field of each table. \nTables without such field will be ignored by the synchronisation process.  \n\n## Installation\n\nDownload the source code, dependencies and test dependencies:\n\n    curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\n    mkdir $GOPATH/src/github.com/Financial-Times/public-things-api\n    cd $GOPATH/src/github.com/Financial-Times\n    git clone https://github.com/Financial-Times/public-things-api.git\n    cd public-things-api \u0026\u0026 dep ensure -vendor-only\n    go build .\n\n## Running locally\n\n1. Run the tests and install the binary:\n\n        go test ./...\n        go install\n\n2. Run the binary (using the `help` flag to see the available optional arguments):\n\n        $GOPATH/bin/pac-aurora-synchroniser [--help]\n\n        Options:\n\n        --source-db-connection-url   Connection URL to the database with the most recent data (env $SOURCE_DB_CONNECTION_URL)\n        --target-db-connection-url   Connection URL to the database that needs to receive the latest data (env $TARGET_DB_CONNECTION_URL)\n        \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinancial-times%2Fpac-aurora-synchroniser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinancial-times%2Fpac-aurora-synchroniser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinancial-times%2Fpac-aurora-synchroniser/lists"}