{"id":45582,"library":"node-redis-dump","title":"node-redis-dump","description":"A Node.js library for backing up and restoring Redis data by exporting keys and values. The current version is 0.2.1, last updated in 2014, with no recent releases. It relies on the redis npm package and operates by connecting to a Redis instance and scanning keys. The library provides a simple API to dump all data to a format that can be re-imported. Unlike more modern tools like redis-dump-go or redis-commander's export, this package is outdated, not actively maintained, and uses callbacks without promise support.","status":"abandoned","version":"0.2.1","language":"javascript","source_language":"en","source_url":"git@github.com:EvilDevRu/redis-dump","tags":["javascript","dump","redis"],"install":[{"cmd":"npm install node-redis-dump","lang":"bash","label":"npm"},{"cmd":"yarn add node-redis-dump","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-redis-dump","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Redis client dependency for connecting to Redis server","package":"redis","optional":false}],"imports":[{"note":"The package uses CommonJS and has no ES module support; default import will fail in ESM context","wrong":"import RedisDump from 'node-redis-dump';","symbol":"RedisDump","correct":"const RedisDump = require('node-redis-dump');"},{"note":"Options must be an object; positional arguments will be ignored","wrong":"const dump = new RedisDump('localhost', 6379, '');","symbol":"RedisDump constructor options","correct":"const dump = new RedisDump({ host: 'localhost', port: 6379, password: '' });"},{"note":"Method does not return a Promise; callback-only pattern","wrong":"dump.export({ type: 'redis' }).then(data => ...);","symbol":"dump.export callback","correct":"dump.export({ type: 'redis', callback: (err, data) => { ... } });"}],"quickstart":{"code":"const RedisDump = require('node-redis-dump');\nconst dump = new RedisDump({\n  host: 'localhost',\n  port: 6379,\n  password: process.env.REDIS_PASSWORD || ''\n});\ndump.connect();\ndump.export({\n  type: 'redis',\n  callback: function(err, data) {\n    if (err) {\n      console.error('Dump failed:', err);\n      return;\n    }\n    console.log('Redis dump data:', data);\n  }\n});","lang":"javascript","description":"Connects to Redis, exports all keys via SCAN, and logs the result as a formatted dump."},"warnings":[{"fix":"Consider alternatives like redis-dump-go or using built-in Redis commands (e.g., redis-cli --rdb).","message":"Package is no longer maintained; last update 2014.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Do not rely on compression; output will always be uncompressed.","message":"The 'isCompress' option is documented but not working.","severity":"breaking","affected_versions":">=0.2.0"},{"fix":"Wrap in a Promise manually if using async/await: new Promise((resolve, reject) => dump.export({ callback: (err, data) => err ? reject(err) : resolve(data) }));","message":"The 'export' method uses callback; no promise support.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Always pass a single object: new RedisDump({ host: '...', port: 6379 });","message":"The constructor expects an options object; passing arguments positionally fails silently.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'0.2.1':24 '2014':28 'activ':90 'api':56 'back':9 'callback':94 'command':82 'connect':43 'current':21 'data':14,60 'dump':4,58,77,99 'export':16,84 'format':63 'go':78 'import':69 'instanc':47 'javascript':98 'key':17,50 'last':25 'librari':7,52 'like':74 'maintain':91 'modern':72 'node':2 'node-redis-dump':1 'node.js':6 'npm':38 'oper':41 'outdat':88 'packag':39,86 'promis':96 'provid':53 're':68 're-import':67 'recent':31 'redi':3,13,37,46,76,81,100 'redis-command':80 'redis-dump-go':75 'releas':32 'reli':34 'restor':12 'scan':49 'simpl':55 'support':97 'tool':73 'unlik':70 'updat':26 'use':93 'valu':19 'version':22 'without':95","created_at":"2026-06-07T12:55:43.428529+00:00","updated_at":"2026-06-07T12:55:43.428529+00:00","problems":[{"fix":"Ensure Redis is running: redis-server or check host/port configuration.","cause":"Redis server is not running or not accessible at the specified host/port.","error":"Error: Redis connection to localhost:6379 failed - connect ECONNREFUSED"},{"fix":"Always call dump.connect() after creating the instance and before calling export.","cause":"Calling export before calling connect or using a malformed instance.","error":"TypeError: dump.export is not a function"},{"fix":"Clone the repository from GitHub and require the local path: const RedisDump = require('./node-redis-dump');","cause":"Package not installed; installation from npm is not possible as it's not published.","error":"Cannot find module 'node-redis-dump'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"git@github.com:EvilDevRu/redis-dump","github":"git@github.com:EvilDevRu/redis-dump","docs":null,"changelog":null,"pypi":null,"npm":"node-redis-dump","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}