I have a big tar.gz file (let's say 3GB) when you untar it, it goes to between 16 to 25 GB. The untar version has this structure:
backup
├── folder1
│ ├── somestuff.aof
│ └── dump.rdb
└── low
What I only care is dump.rdb
, but I don't want to read the whole tar.gz file and untar it in memory and then read the dump.rdb file since I have limited memory.
What's the best sparky way to just read dump.rdb
? if that's not possible what's the best way to solve the memory issue?
P.S: I am using Amazon AWS