[ rClonePlexDrive ] rsync for Cloud Storage + Plex Drive mount CLI

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
outkastm
Posts: 1199
Joined: 29 Dec 2020, 23:52

[ rClonePlexDrive ] rsync for Cloud Storage + Plex Drive mount CLI

Post by outkastm »

About : https://rclone.org/
https://github.com/dweidenfeld/plexdrive

Applicable models: x.64 series, ARMv8 series
Applicable TOS4: 4.1.27 or later versions
Applicable TOS5: 5.0.130 or later versions
App download: https://tmnascommunity.eu/download/rcloneplexdrive

Required packages:
ModBase1 > 1.00.10.1

Module WebUI for additional settings can be accesses at:
http(s)://yournasip:port/modules/rClonePlexDrive/www for TOS4
http(s)://yournasip:port/rClonePlexDrive for TOS5

include binary:
rclone=v1.60.1 available at /usr/local/bin/rclone
plexdrive=v5.2.1 available at /usr/local/bin/plexdrive

First create the rclone.conf by running:
TOS4

Code: Select all

/usr/local/bin/rclone config --config=/mnt/appdata/MOD_CONFIG/rClonePlexDrive/rClone/rclone.conf
TOS5

Code: Select all

VOLUME=$(/etc/init.d/rClonePlexDrive vol_name)
rclone config --config=/$VOLUME/MOD_CONFIG/rClonePlexDrive/rClone/rclone.conf
How to manully install this app on TerraMaster application store?
User avatar
mutchix
Posts: 10
Joined: 13 Dec 2020, 18:25

Re: [ rClonePlexDrive ][ 1.00.00 ] rsync for Cloud Storage + Plex Drive mount CLI

Post by mutchix »

Thank you for this work !

I've had a first try at the setup, and i could install and create the config file without problem.
But when trying to connect to the cloud destination (here a backblaze b2 bucket), it seems the app has a trouble to authenticate to the cloud server.
Here is the message i get :

Failed to create file system for “b2:”: failed to authorize account: failed to authenticate: Get https://api.backblazeb2.com/b2api/v1/b2 ... ze_account: 6 x509: certificate signed by unknown authority

I'm creating a thread on the Rclone Forum to seek info there, but it seems this is related to the SSL certificate resquest to access to backblaze API (see link below)

I've managed to run a sync with the --no-check-certificate argument for now, but this raises security issues.
User avatar
outkastm
Posts: 1199
Joined: 29 Dec 2020, 23:52

Re: [ rClonePlexDrive ][ 1.00.00 ] rsync for Cloud Storage + Plex Drive mount CLI

Post by outkastm »

Do you have also the latest module ModBase1 installed?
User avatar
mutchix
Posts: 10
Joined: 13 Dec 2020, 18:25

Re: [ rClonePlexDrive ][ 1.00.00 ] rsync for Cloud Storage + Plex Drive mount CLI

Post by mutchix »

Yes but i forgot to launch it prior to the sync, and it works perfectly now.

Thanks again :!:
User avatar
outkastm
Posts: 1199
Joined: 29 Dec 2020, 23:52

Re: [ rClonePlexDrive ][ 1.00.00 ] rsync for Cloud Storage + Plex Drive mount CLI

Post by outkastm »

if you think on some improvements it can be added, like a script to run when the app start etc, now it's purely a CLI app
User avatar
mutchix
Posts: 10
Joined: 13 Dec 2020, 18:25

Re: [ rClonePlexDrive ][ 1.00.00 ] rsync for Cloud Storage + Plex Drive mount CLI

Post by mutchix »

I'm starting to experiment with all the arguments available in Rclone to finetune the backup now, so if it's possible for you, it would definitely be helpful to run a script directly from the app without going through the CLI.
And i'm still searching how to automate the sync/copy job (to run it once a day or once a week), but i think that could be really useful as well !
User avatar
outkastm
Posts: 1199
Joined: 29 Dec 2020, 23:52

Re: [ rClonePlexDrive ][ 1.00.00 ] rsync for Cloud Storage + Plex Drive mount CLI

Post by outkastm »

To run jobs every hour, week, month, etc you can use Cron_okm app.
You write the job in a file, make that file executable and set that file to be executed whenever you want using Cron_okm

To run some command when the module is started/stopped you have 2 empty scripts in /mnt/appdata/MOD_CONFIG/rClonePlexDrive: start file is executed during the app start and stop file is executed when the app is stopped
User avatar
MooieBoot
Posts: 33
Joined: 24 Nov 2021, 05:29

Re: [ rClonePlexDrive ][ 1.00.00 ] rsync for Cloud Storage + Plex Drive mount CLI

Post by MooieBoot »

Is it possible to create an update for this package? From the rclone git I found that a new object storage provider was added in november (strato hidrive) that I would like to use for backup the tnas. Thanks in advance!
Post Reply

Return to “Developer Discussion Room”