This script will clone one PostgreSQL schema (including data) from 'source' to 'target' database.
If the schema exists in 'target' database, it will be dropped and replaced with schema from 'source' database.
Script will make backup of both schemas in the working directory.
Run the script and follow the instructions.
This script has been used in production multiple times.