Created Gateway to Remote Object Storage (markdown)

Chris Lu 2021-09-04 19:12:31 -07:00
parent 432dca6f4c
commit dadc02b803

@ -0,0 +1,27 @@
# Context
The [[Mount Remote Storage]] feature can mount one remote storage folder to one local folder.
```
> remote.mount -dir=/xxx -remote=cloud1/bucket
```
However, usually you may have multiple buckets in one cloud storage. How to synchronize them automatically?
# Design
The `weed filer.remote.sync` added a few of features:
* Upload all changes under `/buckets` to remote storage.
* If any buckets are created or deleted, the remote storage will also create or delete the corresponding buckets.
* The new buckets will be automatically mounted.
To do so, the `weed filer.remote.sync` process needs to know the default remote storage to create the new bucket.
# Usage
## Mount all existing remote buckets to local
TBD
## Upload local changes in `/buckets`
```
$ weed filer.remote.sync -createBucketAt=cloud1
synchronize /buckets, default new bucket creation in cloud1 ...
```