mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Cloud Tier (markdown)
parent
90c2f3ac27
commit
e65e776a3c
|
@ -89,6 +89,7 @@ Here's an example of a configuration for an Rclone storage backend:
|
|||
[storage.backend.rclone.default]
|
||||
enabled = true
|
||||
remote_name = "my-onedrive"
|
||||
key_template = "SeaweedFS/{{ slice . 0 2 }}/{{ slice . 2 4 }}/{{ slice . 4 }}" # optional
|
||||
```
|
||||
|
||||
Where `my-remote` must correspond to what's configured in `~/.config/rclone/rclone.conf`:
|
||||
|
@ -98,6 +99,16 @@ type = onedrive
|
|||
...
|
||||
```
|
||||
|
||||
The optional `key_template` property makes it possible to choose how the individual volume files are eventually named in the storage backend.
|
||||
The template has to follow the [text/template](https://pkg.go.dev/text/template) syntax, where `.` is a UUID string representing the volume ID.
|
||||
In this example, files would be named as such in OneDrive:
|
||||
```
|
||||
SeaweedFS/
|
||||
5f/
|
||||
e5/
|
||||
03d8-0aba-4e42-b1c8-6116bf862f71
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
After changing the master config, you need to **restart the volume servers** so that they pull the updated configuration
|
||||
|
|
Loading…
Reference in a new issue