Jedich
July 14, 2023, 10:53am
1
Hi there.
first of all, i'm very new to this, so dont throw stones at me.
As i can only move slowly from Gdrive to Dropbox, my Idea is that Plex is reading from Gdrive (as it actually does) + reading from Dropbox.
In my Server i got atm only one Folder, where the Stuff from Gdrive is moving to.
I'm not so familiar with that, so need some help with the howto etc.
my actually rclone config looks like this:
#GDRIVE PART#
gd_xxx]
type = drive
client_id = xxx
client_secret = xxx
token = {"access_token":"xxx","token_type":"Bearer","refresh_token":"xxx":"xxx"}
[gd_xxx_crypt]
type = crypt
remote = gd_xxx: /
filename_encryption = standard
password = xxx
password2 = xxx
[gd_xxx_plex_crypt]
type = crypt
remote = /mnt/xxx/plexdrive
filename_encryption = standard
password = xxx
password2 = xxx
#DROPBOX PART#
[dropbox_xxx]
type = dropbox
client_id = xxx
client_secret = xxx
token = {"access_token":"xxx","token_type":"bearer","refresh_token":"xxx","expiry":"xxx"}
[dropbox_xxx_upload]
type = dropbox
client_id = xxx
client_secret = xxx
token = {"access_token":"xxx","token_type":"bearer","refresh_token":"xxx","expiry":"xxx"}
[dropbox_xxx_crypt]
type = crypt
remote = dropbox_xxx:encrypt
password = xxx
password2 = xxx
server_side_across_configs = true
filename_encoding = base32768
[dropbox_xxx_upload_crypt]
type = crypt
remote = dropbox_xxx_upload:encrypt
password = xxx
password2 = xxx
server_side_across_configs = true
filename_encoding = base32768
You can add following remote:
[union_google_dropbox]
type = union
upstreams = dropbox_xxx_crypt::ro gd_xxx_crypt::ro
This will combine content of both gdrive and dropbox
Then you can mount it and use in Plex
Jedich
July 14, 2023, 1:32pm
3
Thanks, but when I'm understanding this right, the GDrive will be ReadOnly, and i cant continue uploading Stuff on it, right? Same to DropBox Folder?
You can continue what you are doing using other remotes. This is the easiest option - why to change anything?
This new remote is only for viewing content of both dropbox and google at the same time - so you can temporarily use it for plex - until you finish migration. And it is read only as it is the safest.
1 Like
Jedich
July 14, 2023, 3:20pm
5
When using this, the only Folder i have right now, is only ReadOnly. So i cant uploading my Stuff from Gdrive into DropBox Folder.
That makes me thinkig of this:
Actually its like that:
Folder: GDrive-xxx is mounted from "gd_xxx_plex_crypt" - RO
Folder: GDrive-Upload is mounted from "gd_xxx_crypt" - RW
Plex is reading from GDrive-xxx.
Now at Dropbox its atm like that:
Folder: Plex_drobox is mounted from "dropbox_xxx_crypt" - RW
This Folder should be used like GDrive, Upload-only. But its not, its RW instead of RO.
So how can i change the mount from an exisiting Folder to "drobox_xxx_upload _crypt", instead of "dropbox_xxx_crypt" with RO Option?
I need to mount another Folder, like:
Plex_drobpox_read, which is then mounted to "dropbox_xxx_crypt" with RO.
I do not understand your setup so what I suggest:
Do not change anything and keep uploading like you are doing now
Add union remote and mount it - it is new mount. Point Plex to it.
What I am missing?
Jedich
July 14, 2023, 3:34pm
7
how will the mount look like?
/usr/bin/rclone mount --config /root/.config/rclone.conf ........
dropbox_xxx_crypt: /home/Plex-Union?
kapitainsky:
it is new mount
i'm a little bit confusing. you're saying make a new mount, but "upstreams = dropbox_xxx_crypt::ro" will this not make my exisiting mount into RO?
Nothing will change with existing mounts.
Run:
rclone mount --config /root/.config/rclone.conf dropbox_xxx_upload_crypt: /home/Plex-Union-Temp
and use this for plex. everything else for your migration
Jedich
July 14, 2023, 4:26pm
9
i did.
i did this either, then this comes up:
2023/07/14 18:25:15 NOTICE: Config file "/root/.config/rclone.conf" not found - using defaults
2023/07/14 18:25:15 Failed to create file system for "dropbox_xxx_upload_crypt:": didn't find section in config file
so i checked the file:
its located in /root/.config/rclone/
permissions are set to 644.
asdffdsa
(jojothehumanmonkey)
July 14, 2023, 4:35pm
10
is that the correct correct path?
might try --config=/root/.config/rclone/rclone.conf
rclone config file
Configuration file is stored at:
/root/.config/rclone/rclone.conf
I took this path from your example. I have no idea where you keep your config...
Use one you added union_google_dropbox to
1 Like
And I also made mistake - you want to mount union_google_dropbox
so you should use:
rclone mount --config /path/to/rclone.conf union_google_dropbox: /home/Plex-Union-Temp
Jedich
July 14, 2023, 7:49pm
13
ok, the path wasnt right, now it is.
but still get this message:
Failed to create file system for "union_google_dropbox:": didn't find section in config file
in the config file i looked again, seems ok for me:
[union_google_dropbox]
type = union
upstreams = dropbox_xxx_crypt::ro gd_xxx_crypt::roquote
xxx changed with real infos. do i have to restart rclone somehow or smth like that?
edit:
do i have to create maybe a new remote with "rclone config" ?
can you run:
rclone listremotes --config /path/to/rclone.conf
I do not know what is your path:) you have to replace it with correct path
Jedich
July 16, 2023, 8:42pm
18
Do i have to create a .service with the right infos in it? like my existing mount have?
no idea. what is .service
you talk about? you post all data maybe somebody can help. random questions without context won't work.
You start topic how to create union - then you throw question about .service
something. try to fix one issue at the time. Otherwise nobody can help.
Jedich
July 16, 2023, 9:14pm
20
I'm trying, but no idea why this dont work:
Right is the conf File with the union section i had put in.