Taurus Taurus
Bookmark

rclone script to gdrive

Posted April 30th, 2020    1492   0  

hey

i have now set up a gdrive and want to make a atomatic movement of my downloaded content once a day where it moves all there a over 7 days old to my gdrive

but i cant read the script to see where to make it work.

can someone help me?

i am alsow not shure about my gdrive is correct set up

can see it in seedbucket but not in ssh...

3 Replies

angoikon
angoikon
Staff

Hello!
If you installed the script using the guide here during your plex integration with Google drive, then the script resides at

/home/user/.local/bin/offload_plex.sh

Your rclone configuration in this case, resides at

/home/user/.apps/plex/.config/rclone/rclone.conf

So if you like to test your gdrive, you need to use that conf by setting the correct path and exporting it (just check the script on how to do that). Hint: if you set up your Gdrive correctly and integrated with Plex, then you don't have to test it as it -obviously- works.

If you need to create another similar script, use that one as a guide - don't forget to change the correct source/destination paths- and set a cron job for once a day (no more as now you will be making even more API calls!). Or you could use the one already installed, append the flag you want at ARGS (this however will effect every folder under Plex) and move the content you want inside those Plex subfolders

i have now get my transfer to work - but it dont use the encryption have tried ssh to setup the encryption in rclone but when i tryed to view the directory list it says no files. i have copyed the keys from my settings under seedbucket. what can i have do wrong??
Taurus
Taurus

i have now get my transfer to work - but it dont use the encryption have tried ssh to setup the encryption in rclone but when i tryed to view the directory list it says no files. i have copyed the keys from my settings under seedbucket. what can i have do wrong??

angoikon
angoikon
Staff

You need to verify that you have set correctly all rclone settings for both gdrive (client id, root home folder etc) and crypt remote (encryption settings and obfuscated passwords, as well as the remote point upon gdrive).

Since you will be using the same gdrive (right?) as the one you have implemented Plex into, it would be wiser to use the exact same rclone configuration found in "/home/user/.apps/plex/.config/rclone/rclone.conf" , to avoid any errors.
Just copy that file to "/home/user/.config/rclone/rclone.conf" (warning: if you have already a conf file there, it will be overwritten, so make sure you backup it first or just copy and paste its contents to that file).

If you rclone ls at your crypt remote and it says that no files exist, this means that either you have set the gdrive (and/or remote) point wrong (check your root home folder of your gdrive plus the remote entry at the crypt remote), or the encryption settings of the crypt remote are wrong (this doesn't mean that there are no files inside, it's just that the crypt remote can't see them)