Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.1 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.1 KB

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