From 6d4dde3d63bb66a716878313baa1378167bc008d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 9 Aug 2021 23:45:15 -0700 Subject: [PATCH] Updated Mount Remote Storage (markdown) --- Mount-Remote-Storage.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Mount-Remote-Storage.md b/Mount-Remote-Storage.md index ff87af4..143c198 100644 --- a/Mount-Remote-Storage.md +++ b/Mount-Remote-Storage.md @@ -27,6 +27,22 @@ This operation will pull down all metadata from the remote storage. Later, any metadata operations can be invoked locally, and respond very fast. +## Write Back changes to Remote Storage + +If the mounted directory is only for reading, you can start to use it. + +If you want to change files in the mounted directory, a separate process `weed filer.remote.sync -dir=xxx` should be started. +This process will listen to filer change events, and write any changes back to the remote storage. + +``` +weed filer.remote.sync -filer=: -dir=xxx +``` + +## 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. +And if `weed filer.remote.sync -filer=: -dir=xxx` was not run, the updated local data have not been uploaded to the remote storage, so these local changes will be lost. + ## Benefits to Cache Metadata ### Speed up meta data operations