explain better what happens when saving and loading metadata, explain one example case when to do it

Michał Frąckiewicz
2024-02-20 20:18:18 +01:00
parent 26ac6ae3e3
commit 74ffd64137

@@ -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