IOTstack icon indicating copy to clipboard operation
IOTstack copied to clipboard

Feature request: Use rclone as a container

Open Londoneye02 opened this issue 5 years ago • 1 comments

I was wondering if rclone can be used as a container instead of being installed on the host.

I saw this video from the Argentinian Youtuber PeladoNerd (I can help with translation if needed). He created a rclone container in order to mount a gdrive folder into the raspberry. He used it for Plex, but that's not the case...

https://youtu.be/mnDYJ2ZpdxU

I was wondering if something like these could be used for the docker backups. I tried runing the backup script with this container up and running (and a gdrive folder properly mounted on my Pi...) But no luck, it gives me an error, rclone: command not found... of course, rclone is not natively installed on the system, it's a container.

I tried to modify the command in the docker-backups.sh file but I get stuck in here, this:

rclone sync -P ./backups --include "/backup*" gdrive:/IOTstackBU/

should be changed to something like this, I guess..

docker exec -it rclone-mount rclone sync.... But then I don't know how to continue...

Do you think this is feasible?

Londoneye02 avatar Oct 07 '20 23:10 Londoneye02

I actually used to do this with FUSE and Plex. I'll see about containerising it, it might be a big lift though and might just be easier to install rclone on the host system, either when initially starting IOTstack, or as an option in the backup menu.

Slyke avatar Oct 08 '20 09:10 Slyke