Duplicate a key inside the current or another DB.
Section: Keys and expiration
Copy a key
bash
bash
COPY user:1 user:1:backupLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Keys and expiration