Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Redis dump #19

Closed
Benderwan opened this issue Aug 27, 2017 · 3 comments
Closed

Restore Redis dump #19

Benderwan opened this issue Aug 27, 2017 · 3 comments

Comments

@Benderwan
Copy link

Hi, I'm trying to restore a redis database from a .rdb file without success (Can't currently upload using rsync to the container as tar is not installed).

Would you know any way of doing it ?

Thank you very much

@hhorak
Copy link
Member

hhorak commented Sep 18, 2017

I don't understand why doing it via rsync -- wouldn't mounting as volume work as for having the file in the container?

Anyway, as a general thought -- we're slowly adding a feature to the other databases container images to be able to extend the functionality, see more at sclorg/mongodb-container#239. In that concept, we either use source-to-image, or just volume-mount files into /opt/app-root/ during start and the container can do something more.

So, I can imagine having the same support in this container image and then you'd just add your .rdb file into say /opt/app-root/redis-initdb/init.rdb and the image would just do whatever is needed during about the import. Would that sound reasonable?

@Benderwan
Copy link
Author

I think it sounds reasonable, I'll try mounting as volume. Thank you ;)

@phracek
Copy link
Member

phracek commented Aug 16, 2023

@Benderwan Closing this issue, Feel free to reopen it if it is still valid. Thank you.

@phracek phracek closed this as completed Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants