Hi Atlassian Community,
I need guidance on replicating our production database to our test (Beta) environment for Confluence Data Center while preserving test-specific configurations.
Current Setup:
- Confluence Data Center
- PostgreSQL database with following schemas:
- confluence
- rdsadmin
- postgres
- Confluence.> public contains 236 tables
- Access to database is available
Main Concern: I want to avoid overwriting critical configuration settings (like base URL) stored in tables such as BANDANA during the migration process.
Questions:
- Should I exclude specific tables during pg_dump/pg_restore to maintain test environment configurations?
- Would it be better to only include certain tables in the migration?
- Should I focus on dumping a specific schema instead of the entire database?
Specifically, I'm concerned about:
- Maintaining test environment-specific configurations
- Properly handling the BANDANA table which contains crucial configuration
- Determining the correct scope for pg_dump (full database vs specific schema vs selected tables)
Any recommendations on the safest approach to achieve this would be greatly appreciated.
Technical details:
- Using pg_dump and pg_restore for the migration
- Need to preserve test environment configurations
Thank you in advance for your help!