Autorply database migration
Follow along If you started out with a bundled install of postgres, redis and autorply in a single instance and now wants to migrate to managed database service. In this guide, we assume you want to migrate to AWS RDS. This guide should be equally applicable to any other managed database service or even migrating data between different Autorply installations.Step 1: Stop Autorply service
Stop Autorply service to stop database activity.Step 2: Back up the database
Back up the database usingpg_dump tool.
Step 3: Create RDS instance
Create an RDS Postgres instance in your AWS account. Refer to the AWS documentation.Step 4: Verify connectivity
Verify connectivity to the new RDS instance from your Autorply installation.Step 5: Restore the database
Restore the database from the backup file.Step 6: Update environment variables
Modify the Postgres related environment variables to use the new RDS credentials.Step 7: Start Autorply service
Start the Autorply service.If you are getting the Autorply onboarding screen again on visiting your self-hosted Autorply URL,
login to the rails console and run the following:

