mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Created Gateway to Remote Object Storage (markdown)
parent
432dca6f4c
commit
dadc02b803
27
Gateway-to-Remote-Object-Storage.md
Normal file
27
Gateway-to-Remote-Object-Storage.md
Normal file
|
@ -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 ...
|
||||
```
|
Loading…
Reference in a new issue