Backup and restore Redis data using Node.js. This package version 0.6.0 is a maintained fork of node-redis-dump (originally by Dmitriy Yurchenko) that applies bugfixes and security updates. It works with ioredis client and supports export/import of Redis keys in various formats (redis, json). Release cadence is low; no recent updates. Key differentiator: it provides a simple dump/restore mechanism for Redis, but does not support Redis streams or binary data in 'redis' type.
npm install node-redis-dump2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows connecting to Redis, exporting all keys in redis format, logging result.
Always call dump.connect() after new RedisDump(opts) when opts does not contain 'client'.
Avoid using with Redis streams; consider alternative solutions for stream data.
Use 'json' type for binary-safe export/import, or base64-encode binary data before export.
Ensure Redis is running and host/port are correct. Optionally use {client: existingRedisClient} to reuse an already connected client.Call dump.connect() first. Example: const dump = new RedisDump(opts); dump.connect(); dump.export(...);
Switch to 'json' type or encode binary data as string (base64).