2019-05-10 05:47:39 +00:00
|
|
|
# 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/ \
|
2019-07-31 11:17:06 +00:00
|
|
|
newnius/rclone:arm
|
2019-05-10 05:47:39 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## 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)
|
|
|
|
|