Migrate production data to another location

Hi How to move production data from one server instance to another ?
i just set up a online CHT server in AWS and would like to transfer all data from an old instance still in AWS to my new instance.
Thanks

Hi @Babacar_Gueye

Does the new instance already have data?
If not, you could just clone the CouchDB data storage for the old instance and have the new instance use it.
If yes, the easiest would be to replicate all data from your old instance into the new one. You might need to reconcile some documents (for example, configuration documents).

Please refer to CouchDb documentation about how to do a backup, which should cover both options.

Hi @diana
Thank you for your response. this helped me to migrate entirely data. i was just forced to ajust permissions of the data folder.
Thanks, it works

1 Like

Hi @diana,

What rights/permissions should the replication user have?
I tried with the administrator medic account in a production server and it refused the credentials.

I am able to use these same credentials to login to CHT as admin.

Thanks

@Babacar_Gueye Iā€™d love to understand how you did the migration

1 Like