Skip to content

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

License

Notifications You must be signed in to change notification settings

cassvail/docker-rclone-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published