mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
explain better what happens when saving and loading metadata, explain one example case when to do it
@@ -31,11 +31,13 @@ The Filer Store persists all file metadata and directory information.
|
||||
|
||||
#### Switching between different 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
|
||||
|
||||
Reference in New Issue
Block a user