How can I dump and restore the redis database on PHP, I'm using [predis](https://github.com/nrk/predis) on my client.

Can I dump the redis database on .rdb format ?

**Updated :**

I dump/backup database using the following command,

```
$redis->bgSave();

```

How to restore it back to my database ?