Sha256: 98995cfaddd5853e52ea9c35dab7abb271d9f9089c489e0f95c3e21cdfdfa553

Contents?: true

Size: 735 Bytes

Versions: 1

Compression:

Stored size: 735 Bytes

Contents

#!/bin/bash

set -eo pipefail

if [[ -z ${GITHUB_WORKFLOW} ]]; then
  export SECONDARY_SOURCE_DB_URL="postgres://jamesbond:jamesbond123%407%21%273aaR@source_db/postgres"
fi

export SOURCE_DB_URL="postgres://jamesbond:jamesbond123%407%21%273aaR@localhost:5432/postgres"
export TARGET_DB_URL="postgres://jamesbond:jamesbond123%407%21%273aaR@localhost:5433/postgres"
export PGPASSWORD='jamesbond123@7!'"'"''"'"'3aaR'

# Bootstrap and cleanup
echo "===== Performing Bootstrap and cleanup"
bundle exec bin/pg_easy_replicate bootstrap -g cluster-1 --copy-schema
bundle exec bin/pg_easy_replicate start_sync -g cluster-1 -s public
bundle exec bin/pg_easy_replicate stats -g cluster-1
bundle exec bin/pg_easy_replicate switchover -g cluster-1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pg_easy_replicate-0.1.8 scripts/e2e-start.sh