Updated Mount Remote Storage (markdown)

Chris Lu 2021-08-31 02:22:29 -07:00
parent 30c4752ae0
commit efd12875f0

@ -65,6 +65,14 @@ The process is designed to be worry-free. It should automatically resume if stop
## Unmount a Remote Storage
Similarly, running `remote.unmount -dir=xxx` can unmount a remote storage. However, this means all cached data and metadata will be lost.
Similarly, running `remote.unmount -dir=xxx` can unmount a remote storage. However, this means all cached data and metadata will be deleted.
And if `weed filer.remote.sync -filer=<filerHost>:<filerPort> -dir=xxx` was not run, the local updates have not been uploaded to the remote storage, so these local updates will be lost.
Important! When running `remote.unmount -dir=xxx`, the corresponding `weed filer.remote.sync -dir=xxx` should NOT be run. Since the deletion will be propagated to the remote storage!
So the recommended steps to unmount is:
1. Run `weed filer.remote.sync -dir=xxx` to ensure all local updates are persisted to cloud.
2. Stop `weed filer.remote.sync -dir=xxx`
3. Run `remote.unmount -dir=xxx`