-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redis): create instructions to extract redis data to a text file
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pyenv/ | ||
dump.rdb | ||
dump.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Redis migration | ||
|
||
## Get the data | ||
|
||
1. Use the `redis-cli save` command to export a `dump.rdb`. | ||
1. Place it in this folder | ||
|
||
## Setup python | ||
|
||
1. Use venv to create a virtual env. | ||
- `python -m venv pyenv` | ||
1. Install the packages | ||
- source ./pyenv/bin/activate | ||
- pip install -r requirements.txt | ||
|
||
## Extract from the RDB | ||
|
||
1. Covert the redis dump to key value pairs | ||
- rdb --command justkeyvals ./dump.rdb | sort > dump.txt | ||
|
||
## Filter the data | ||
|
||
## Load the data |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
rdbtools | ||
python-lzf | ||
setuptools |