This Documentation is about how can we export data or database from old database to new database
$ rethinkdb dump -c <host>:<port> -e <database name>
Export Data From AWS Compose Rethinkdb:
$ rethinkdb dump -c <host>:<port> -e <database name> --tls-cert ./ca.crt -p
It will ask your rethinkDb password
After successful export it will generate zip file , you need to unzip it
$ rethinkdb import -d <directory path which to import> -c <host>:<port>
Import Data To AWS Compose Rethinkdb:
$ rethinkdb dump -d <directory path which to import> -c <host>:<port> --tls-cert ./ca.crt -p
It will ask your rethinkDb password
$ mongoexport -h localhost:27017 --db <database name> --collection <collection name> --out <which file to export(.json)>
$ mongoimport -h localhost:27017 --db <database name> --collection <collection name> --file <which file to import(.json)>
$ mongorestore -d virtualDB mongo_backup/videovirtualdb/
$ sudo apt-get install postgresql
$ sudo apt install postgresql-client-common
$ pg_dump -h <host-name> -p <port> <database-name> > kong_database_file
Export Data From AWS Compose Postgresql:
$ pg_dump -U <username> -h <host-name> -p <port> <database-name> > kong_database_file
It will ask your Postgresql password
After successful export it will create file
$ psql -U <user-name> -h <host> -p <port> <database-name> < kong_database_file
Import Data To AWS Compose Postgresql:
$ psql -U <user-name> -h <host> -p <port> <database-name> < kong_database_file
It will ask your Postgresql password