Dump and Restore
See original GitHub issueAny help on why this simple example would fail with: ReplyError: ERR DUMP payload version or checksum are wrong
.
const Redis = require("ioredis");
(async () => {
try {
const redis = new Redis({host: 'localhost'});
let data = await redis.dump('0000_OLD_KEY');
await redis.restore('0000_NEW_KEY', 0, data);
process.exit();
} catch (err) {
console.error(err);
process.exit(1);
}
})();
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Dump and restore - Softpanorama
Dump backups a filesystem as a whole into an ``archive'', and restore retrieves files from it. Although the archive may be created as...
Read more >Dump and Restore - Ring of Saturn Internetworking
Dump. dump is a Unix program used to back up file systems. It operates on blocks, below filesystem abstractions such as files and...
Read more >Using DUMP and RESTORE for backup and recovery - IBM
DFSMSdss can back up and recover data sets, entire volumes, or specific tracks. The DFSMSdss DUMP command is used to back up tracks,...
Read more >Dump/restore utilities
The restore command performs the inverse function of dump; it can restore a full backup of a filesystem. Single files and directory subtrees ......
Read more >Dump and restore - Azure Database for PostgreSQL
You can extract a PostgreSQL database into a dump file. Then, you can restore from a file created by pg_dump in Azure Database...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use
dumpBuffer
notdump
. Where are the docs for this?dump
should not exist in it’s string form, it seems like we would always wantdumpBuffer