Page 1 of 4

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

Posted: 12 Oct 2021, 01:37
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?

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

Posted: 15 Oct 2021, 03:54
by outkastm
added initial version

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

Posted: 15 Oct 2021, 20:38
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.

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

Posted: 15 Oct 2021, 20:47
by outkastm
Do you have also the latest module ModBase1 installed?

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

Posted: 15 Oct 2021, 20:54
by mutchix
Yes but i forgot to launch it prior to the sync, and it works perfectly now.

Thanks again :!:

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

Posted: 15 Oct 2021, 21:08
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

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

Posted: 19 Oct 2021, 22:55
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 !

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

Posted: 21 Oct 2021, 01:06
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

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

Posted: 05 Dec 2021, 03:41
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!

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

Posted: 05 Dec 2021, 05:23
by outkastm
Will be done