motionbank / docker-rclone-sync

Docker container to execute ```rclone sync``` periodically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker rclone sync

Docker container to execute rclone sync periodically

rclone documentation: rclone.org/docs

Usage

Parameters

-v /rclone_config path where .rclone.conf is stored (generate config file using rclone cli)

-v /data path containing data to be syncronized

-e SYNC_DESTINATION sync destination (this should match the section [destination] in the .rclone.conf file)

-e SYNC_DESTINATION_PATH sub-path on destination

-e DELAY delay time to wait between syncs. DELAY will be passed to sleep command

docker-compose

Sample drive configuration:

docker-compose.yml

rclone-sync:
  image: cassvail/rclone-sync
  volumes:
    - ./local_config_folder:/rclone_config
    - ./local_data:/data
  environment:
    SYNC_DESTINATION: drive
    SYNC_DESTINATION_PATH: SubDirectory
    DELAY: 1h

local_config_folder/.rclone.conf

[drive]
type = drive
scope = drive.file
use_trash = false
token = DRIVE_JSON_TOKEN

About

Docker container to execute ```rclone sync``` periodically

License:MIT License


Languages

Language:Dockerfile 64.2%Language:Shell 35.8%