yannh / redis-dump-go

Backup & Restore your Redis server - FAST
MIT License
274 stars 58 forks source link

add option to skip "select" statement in resulting dump #15

Open zekker6 opened 3 years ago

zekker6 commented 3 years ago

In my use case it was needed to import dump from database 4 of one instance to default database of another one, new option allows to remove "select" statement for resulting dump.

yannh commented 3 years ago

Hi @zekker6 , thanks a lot! I like the idea, I need to think about it a little bit - wondering if this makes sense when dumping all databases for example :thinking: I'll come back to this soon! :+1:

zekker6 commented 3 years ago

@yannh I was also thinking about an additional option to override "select X" DB so it will be possible to set it to 0 for my case, but this does also have some corner cases to consider. Let me know if you'll have an idea on how to make it better - I'll be happy to implement this