Sha256: facc2efcd0d86b71638b6a0199185170ef466cae0ccef1f988a842a7d61a3855

Contents?: true

Size: 794 Bytes

Versions: 5

Compression:

Stored size: 794 Bytes

Contents

#!/bin/bash

set -eo pipefail

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

export SOURCE_DB_URL="postgres://james-bond:james-bond123%407%21%273aaR@localhost:5432/postgres-db"
export TARGET_DB_URL="postgres://james-bond:james-bond123%407%21%273aaR@localhost:5433/postgres-db"
export PGPASSWORD='james-bond123@7!'"'"''"'"'3aaR'

# Config check, 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 --recreate-indices-post-copy
bundle exec bin/pg_easy_replicate stats -g cluster-1
bundle exec bin/pg_easy_replicate switchover -g cluster-1

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_easy_replicate-0.2.7 scripts/e2e-start.sh
pg_easy_replicate-0.2.6 scripts/e2e-start.sh
pg_easy_replicate-0.2.5 scripts/e2e-start.sh
pg_easy_replicate-0.2.4 scripts/e2e-start.sh
pg_easy_replicate-0.2.3 scripts/e2e-start.sh