add rclone

This commit is contained in:
2019-05-10 13:47:39 +08:00
parent 9815c2a75c
commit 7f947af49e
4 changed files with 67 additions and 0 deletions

32
rclone/README.md Normal file
View File

@@ -0,0 +1,32 @@
# Deploy rclone in docker
## Deploy
```bash
docker run \
--name rclone \
-d \
--restart always \
--cpus 0.2 \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
--mount type=bind,src=/data/,dst=/data,readonly \
--mount type=bind,src=/home/rclone/,dst=/root/ \
newnius/rclone
```
## Add remote
```bash
docker exec -it rclone rclone config
```
## Sync
Rewrite file `/home/rclone/sync.sh` and restart the rclone container, done!
## Reference
[Install | rclone](https://rclone.org/install/)
[ncw/rclone](https://github.com/ncw/rclone)