Updated Remote Storage Architecture (markdown)

Chris Lu 2021-08-15 02:14:49 -07:00
parent 4f430ecb38
commit b7d296ed0e

@ -51,7 +51,13 @@ On mount, all the metadata will be pulled down and cached to the local filer sto
The metadata will be used for all metadata operations, such as listing, directory traversal, read file size, compare file modification time, etc, which will be free and fast as usual, without any API calls to the cloud.
If the cloud data has any changes, just run `remote.mount -dir=xxx -remote=cloud1/bucket` again in `weed shell`. The local cache will get updated (except deletions). It is a light weight process and you can run it regularly.
To fetch metadata changes in the remote storage, just sync the whole mounted directory or any sub directories:
```
# in "weed shell"
> remote.meta.sync -dir=/path/to/xxx
> remote.meta.sync -dir=/path/to/xxx/sub/folder
```
The local cache will get updated (except deletions). It is a light weight process and you can run it regularly.
## Cache/Uncache File Content