Created Rclone (markdown)

Lauri Ojansivu 2022-12-27 20:19:54 +02:00
parent 62fd68f9ce
commit 39efafd8c4

57
Rclone.md Normal file

@ -0,0 +1,57 @@
# Introduction
With Rclone https://rclone.org , it's possible to use many cloud filesystems, like AWS S3, MinIO https://min.io , etc.
Newest WeKan has features to move files between MongoDB GridFS and filesystem.
Instead of filesystem, Rclone mounted cloud filesystem directory can be used, like MinIO.
# Rclone config
Create config for example with command:
```
rclone config
```
At S3 providers, there is MinIO at https://rclone.org/s3/#minio
`/root/.config/rclone/rclone.conf`
```
[aws]
type = s3
provider = AWS
access_key_id = ACCESS-KEY-HERE
secret_access_key = SECRET-KEY-HERE
region = eu-north-1
location_constraint = eu-north-1
acl = private
[minio]
type = s3
provider = Minio
access_key_id = ACCESS-KEY-HERE
secret_access_key = SECRET-KEY-HERE
endpoint = http://192.168.0.100:9000
acl = private
```
## Listing files with Rclone
```
rclone ls aws:
rclone ls minio:
```
## MinIO config
Create bucket, access key, secret key. Then connect them with `mc` command, here bucket wekan:
```
mc config host add wekan http://192.168.0.100:9000 ACCESS-KEY-HERE SECRET-KEY-HERE
```
## Snap
This uses minimal cache to make it work:
```
rclone mount minio:wekan/files /var/snap/wekan/common/files --vfs-cache-mode minimal
```
Sometimes it shows this kind of message:
```
2022/12/27 10:22:13 NOTICE: S3 bucket wekan path files: Streaming uploads using chunk size 5Mi will have maximum file size of 48.828Gi
```