Can juicefs recover from lost metadata? E.g. if redis is gone? #131
-
Hi, we are evaluating juicefs as a storage backend for a video-transcoding system. First tests worked out nicely! But I am concerned what happens if we lost data on the redis-db. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
No. The metadata in Redis is very important, if you loose these data, you couldn't restore the file system. We recommend read Redis official document about how to persistent data first. If you run your service on public cloud, use the Redis service hosted by the provider is a good choice. |
Beta Was this translation helpful? Give feedback.
-
Hello and thank you very much for your answer. Here's another thought I came across: To get a full and consistent backup we would have to backup redis and the storage bucket at the same time. Is that right? Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
@ghettogeets Here's another way to backup metadata, check the detail at https://juicefs.com/docs/community/metadata_dump_load You could dump metadata to a JSON file, you could load it into another metadata engine. Also here's an auto backup policy for https://juicefs.com/docs/community/metadata_dump_load#automatic-backup |
Beta Was this translation helpful? Give feedback.
No. The metadata in Redis is very important, if you loose these data, you couldn't restore the file system.
We recommend read Redis official document about how to persistent data first. If you run your service on public cloud, use the Redis service hosted by the provider is a good choice.