# rdb2rdb

> Rethink db to rethink db (clone tool)

Latest version **1.0.0** (published 2021-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install rdb2rdb
pnpm add rdb2rdb
yarn add rdb2rdb
bun add rdb2rdb
```

Provides the command `rdb2rdb`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-24 |
| First published | 2020-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gillian Fries |
| Maintainers | nocturnight |

## Links

- npm: https://www.npmjs.com/package/rdb2rdb
- npm.io page: https://npm.io/package/rdb2rdb

## Dependencies (3)

- [watt](https://npm.io/package/watt.md) ^3.3.0
- [yargs](https://npm.io/package/yargs.md) ^17.2.1
- [rethinkdb](https://npm.io/package/rethinkdb.md) ^2.4.2

## Recent versions

- 1.0.0 (latest) — 2021-11-24
- 0.2.1 — 2020-12-04
- 0.2.0 — 2020-11-23

## README

# rdb2rdb (RethinkDB to RethinkDB)

Small CLI tool to clone RethinkDB from one host to another. Usage:

```
npx rdb2rdb clone <srcHost> <srcDb> <dstHost> <dstDb>
```

```
<srcHost>  RethinkDB source host
<srcDb>    source db name
<dstHost>  RethinkDB destination host
<dstDb>    destination db name
```

> The port **28015** is used by default if you don't specify the port in the host parameter.

## Examples

```
// Simple example
rdb2rdb clone localhost unit localhost unit2

// More complex example with user, password and port
rdb2rdb clone user:password@server.com:28016 unit user:password@server2.com:28016 unit
```

## ⚠️ Warning ⚠️

If you are using Elasticsearch with RethinkDB and your are cloning a database on an existant database, don\'t forget to reset indexes with a curl command:

```cmd
curl -X DELETE "<elasticsearch-host>:<port>/<dbName>?pretty"
```

And reindex your data after that 👍

---
_Source: https://npm.io/package/rdb2rdb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
