Skip to content

StanleyWorks/db_mirror_node

Repository files navigation

DB Sync

A tool to sync DB between environments

Setup

  • Add your config to the .env
  • If the env does exist, copy .env example
  • The first section is the primary DB
  • Install deps with pnpm
PRIMARY_DB_HOST=
PRIMARY_DB_PORT=
PRIMARY_DB_USER=
PRIMARY_DB_PASSWORD=
PRIMARY_DB_SCHEMA=

SECONDARY_DB_HOST=
SECONDARY_DB_PORT=
SECONDARY_DB_USER=
SECONDARY_DB_PASSWORD=
SECONDARY_DB_SCHEMA=

Running

  • First build it with npm run build
  • The run npm start. Your DB with

About

A Node.Js script that mirrors two databases. E.g production and staging.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published