sudo apt-get install rclone
From https://rclone.org/onedrive/
First, ssh to the box, forwarding port 53682 to the local machine. You need to be able to connect to that port to complete the setup, and it will only accept connections from local host.
To setup a new remote server, run rclone config
, then
From https://rclone.org/commands/rclone_copy/
rclone copy will copy all files in the source to the destination, ignoring duplicates. It will not remove files.
To use:
rclone copy source:sourcepath dest:destpath
E.g.
rclone copy /nfs/backup/docker onedrive:backup/docker
Optional flags:
From https://rclone.org/commands/rclone_sync/
rclone sync will copy all files in the source to the destination, and delete any files at the destination that don’t exist at the source
To use:
rclone sync source:sourcepath dest:destpath
E.g.
rclone sync /nfs/backup/docker onedrive:backup/docker
Optional flags:
rclone doesn’t schedule its self. Any scheduled cloud syncing needs to occur using a cron job or similar. Note that the cron job needs to run as the same user who ran config as otherwise the configuration will not be present.