redis-drs is a Redis Dump, Restore and Sync tool built on ioredis, supporting all Redis data types with TTL handling. Current stable version is 1.3.11, with regular releases on npm. It provides CLI commands and a TypeScript-friendly programmatic API. Unlike alternatives, it produces human-readable, line-aligned dumps and can stream data, making it suitable for large-scale backups. It supports dump/restore/sync operations with pattern filtering and configurable bulk sizes.
npm install redis-drsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates dump and restore operations using RedisDRS with pattern filtering and TTL preservation.
Always call .next() once and get the total, then iterate over the rest.
Always consume the first value from the async generator.
Use 'path' instead of 'uri' in RedisDRS constructor.
Regenerate dump files using new version.
Pass 'targetRedisOptions' object with 'path' instead of a Redis connection.
Use 'npx redis-drs' or install globally with 'npm i -g redis-drs'.
Use import { RedisDRS } from 'redis-drs'Upgrade Redis server to 2.6+ or use a compatible cloud instance.
Use an absolute path or ensure correct working directory.
Ensure redis.disconnect() is called after all async operations finish.