diff --git a/Filer-Stores.md b/Filer-Stores.md index 38e130a..2c67698 100644 --- a/Filer-Stores.md +++ b/Filer-Stores.md @@ -30,12 +30,14 @@ The Filer Store persists all file metadata and directory information. | TiKV | O(logN)| unlimited | Distributed, Fast |Atomic|Yes| Yes| Scalable. High Availability. Need to manually build. | #### Switching between different Stores -It is easy to switch between different filer stores. +It is easy to switch between different filer stores. +This is useful if you started with embedded DB and want to move to distributed one or in reverse. For example: ```sh -# first save current filer meta data +# make sure you don't create or modify files in filer before this to maintain consistency of metadata +# save current filer meta data to local disk $ weed shell > fs.cd / @@ -45,6 +47,7 @@ total 65 directories, 292 files meta data for http://localhost:8888/ is saved to localhost-8888-20190417-005421.meta > exit +# you can turn off old filer if you have metadata saved to file # now switch to a new filer, and load the previously saved metadata $ weed shell > fs.meta.load localhost-8888-20190417-005421.meta