The easiest way to copy / duplicate a RethinkDB database?

How can I easily duplicate my production database ( mydb ) to create a dev database ( mydb-dev )?

The rethinkdb restore command rethinkdb restore not seem to be able to specify the name of the output database. He has only the opportunity to choose which database I would like to restore from the dump. I am using rethinkdb 1.16.3

+7
database-administration rethinkdb
source share
1 answer

You can use rethinkdb export , extract the archive and rename the directory inside before importing it:

 $ rethinkdb export $ cd rethinkdb_export_2015-04-05T13:54:43 $ mv mydb mydb_dev $ rethinkdb import -d ./ 

The internalfx Thinker tool also allows you to clone a database into another database using the --targetDB= option.

+9
source share

All Articles