Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Guide: How To Use Rclone To Mount Cloud Drives And Play Files

Featured Replies

1 minute ago, tmoran000 said:

[Gdrive_Backup]
type = drive
scope = drive
token = (removed)
team_drive = (removed)

[Gdrive_SecureEN]
type = crypt
remote = Gdrive_Backup:Secure
filename_encryption = standard
directory_name_encryption = true
password = (removed)
password2 = (removed)

[Gdrive_Stream]
type = drive
scope = drive
token = (removed)
team_drive = (removed)

[Gdrive_StreamEN]
type = crypt
remote = Gdrive_StreamEN:Secure
filename_encryption = standard
directory_name_encryption = true
password = (removed)
password2 = (removed)

 

 

this is what was built from putting the info in through SSH

You made the crypt for Streaming point at itself. You put StreamEN instead of Stream.

  • Replies 3.4k
  • Views 632.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I just came across an issue after restarting my server where mergefs wasn't installing. After some investigation it seems the latest build from mergerfs does not work properly and I solved the problem

  • Key elements of my rclone mount command: rclone mount \ --allow-other \ --buffer-size 256M \ --dir-cache-time 720h \ --drive-chunk-size 512M \ --log-level INFO \ --vfs-read-chunk-size

  • Multiple mounts, one upload and one tidy-up script.   @watchmeexplode5 did some testing and performance gets worse as you get closer to the 400k mark, so you'll need to do something like bel

Posted Images

Ahh yes, I see the error, Let me correct this and rerun the mount. 

that still did not work. I made the update, reran the mount. and moved a small file into each of the folders and still nothing goes to Gdrive. just a repeat of what I have been seeing 😪

Is the log saying anything when running the mounts?

 

And the drive remotes did you just point them to your team drives? Did you also create these folders in your team drives through the web ui?

Where you put files? If u put files in rclone upload, it gets uploaded only when the upload script is run

I am sorry that I am so confused over all of this. but the number of names it requires doesnt make sense to me.. It has me name it (Gdrive_Stream) which is what.. the Team drive name? and then it has me make a crypt (Gdrive_StreamEN) What is this? the folder inside the Team drive called Gdrive_Stream . or is Gdrive_StreamEN:Secure...is Secure the name of the folder inside of the Team Drive titled Gdrive_Stream... its a Team Drive named Gdrive_Stream with a folder inside called Secure where I want the files to be stored but the config has me using 3 names all different so I am getting so confused. I looked through the tutorial at the beginning and still does not make sense.. ugh I feel like such a bother to keep asking all these questions.. 

Screen Shot 2019-02-13 at 4.10.56 PM.png

Edited by tmoran000

Just now, nuhll said:

Where you put files? If u put files in rclone upload, it gets uploaded only when the upload script is run

He doesn't have the union set up yet so he is reading and writing directly to the mount.

1 minute ago, tmoran000 said:

I am sorry that I am so confused over all of this. but the number of names it requires doesnt make sense to me.. It has me name it (Gdrive_Stream) which is what.. the Team drive name? and then it has me make a crypt (Gdrive_StreamEN) What is this? the folder inside the Team drive called Gdrive_Stream . or is Gdrive_StreamEN:Secure...is Secure the name of the folder inside of the Team Drive titled Gdrive_Stream... its a Team Drive named Gdrive_Stream with a folder inside called Secure where I want the files to be stored but the config has me using 3 names all different so I am getting so confused. I looked through the tutorial at the beginning and still does not make sense.. ugh I feel like such a bother to keep asking all these questions.. 

No worries, it is confusing at first.

 

So in your webui you created 2 team drives. Call them whatever you want. I don't like to give Google too much of an incline what I'm doing so I just name them Backup and Files.

 

Within the team drive you create the folder. This name is important and in your case would be Secure for both team drives. So I think if you just create 1 folder in each team drive through the webui called Secure you got it working. Might need to unmount first before remounting.

 

10 minutes ago, Kaizac said:

Is the log saying anything when running the mounts?

this is the current log

 

###

Script Starting Wed, 13 Feb 2019 15:57:32 -0500

Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_mount_plugin/log.txt

Script Finished Wed, 13 Feb 2019 15:57:32 -0500

Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_mount_plugin/log.txt

i think i got it working, will have to take a little to check to make sure.

 

So the rclone_unionfs folder is where I will point Plex/Sonarr to.

 

Sonarr download folder and whatever else I want to upload to gdrive will be the rclone_upload folder.

 

When it finishing syncing, the files will appear in the unionfs folder, but they are dummy files taking no space on my actual unraid server.

 

After uploading, the files in rclone_upload folder will be deleted.

 

Do I have this correct?

Edited by mestep

1 minute ago, mestep said:

i think i got it working, will have to take a little to check to make sure.

 

So the rclone_unionfs folder is where I will point Plex/Sonarr to.

 

Sonarr download folder and whatever else I want to upload to gdrive will be the rclone_upload folder.

 

When it finishing syncing, the files will appear in the unionfs folder, but they are dummy files taking no space on my actual unraid server.

 

Do I have this correct?

Correct!

I have made a simple unmount script 

#!/bin/bash
#----------------------------------------------------------------------------
fusermount -uz /mnt/user/rclone_mount/Gdrive_Backup
fusermount -uz /mnt/user/rclone_mount/Gdrive_Stream

 

I know the tutorial has a much longer one but it seems way over done for me, I ran this unmount and reran the mount and still same issue occurs. file copies to the folder on my server so now I have 2 on my server and none on google

Your log doesn't gave errors? You shouldn't be able to mount when files exist on your local folder.

ran unmount with above script.. here is log

Quote

Script Starting Wed, 13 Feb 2019 16:41:00 -0500

Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_unmount_plugin/log.txt

Script Finished Wed, 13 Feb 2019 16:41:00 -0500

Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_unmount_plugin/log.txt

Then ran mount that we built and here is the mount

Quote

Script Starting Wed, 13 Feb 2019 16:42:06 -0500

Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_mount_plugin/log.txt

Script Finished Wed, 13 Feb 2019 16:42:06 -0500

Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_mount_plugin/log.txt
 

after I mount it, I open Krusader, Navigate to /mnt/user/rclone_mount/Gdrive_Backup . and move a file there and it just copies there locally

 

 

Screen Shot 2019-02-13 at 4.22.20 PM.png

Yeah the mount didn't work, otherwise you would see 1 PiB in Krusader.

 

During rclone config did you configure gdrive remotes as team drive and select the right one for each remote?

 

I would suggest to restart after that many mount and unmount trys. And then try a clean mount, BUT CLICK SCRIPT IN BACKGROUND, thats important, that was one of the things i did wrong. DONT click RUN SCRIPT! :D

Edited by nuhll

As far as I know. I set up Stream first and then Backup.. I used all the default configuration when it offered it. 

Just now, tmoran000 said:

As far as I know. I set up Stream first and then Backup.. I used all the default configuration when it offered it. 

Like nuhll said, try a reboot after you unmount again and then run the mount commands through run in background.

 

If that doesn't work PM me your contact info like Discord or something and I'll get in touch.

im gonna take a break and get dinner, I am in USA East coast so its about that time. Im going to pick up when I get back. I appreciate all the support yall are offering. 

 I spent two nights trying to get this to work and I'm finally just about there, thank you for this.

 Just 1 thing, when I delete files it is putting them back where I deleted them from.

I.e:

  • If I delete a file directly (this is how you are meant to delete media files right?)  from mount_unionfs>google_vfs/tvshows/Fawlty Towers....mkv
  • It goes into the

mount_unionfs>google_vfs>.unionfs>tvshows> folder (which I dont have access to unless I reset the permissions in Unraid to that folder)

(The .mkv is also now in the rclone_upload folder.)

  • So if I run the unionFS cleanup script, it gives the below output and then puts the file right back to where I deleted it from, any ideas please?

 

3.02.2019 23:30:43 INFO: starting unionfs cleanup.
rm: cannot remove '/mnt/user/mount_rclone/google_vfs/mnt/user/mount_unionfs/google_vfs/.unionfs/TVShows/Fawlty Towers - S01E01 - A Touch of Class - (1975) - h264-576p.mkv': No such file or directory
rm: cannot remove '/mnt/user/mount_rclone/google_tdrive_vfs/mnt/user/mount_unionfs/google_vfs/.unionfs/TVShows/Fawlty Towers - S01E01 - A Touch of Class - (1975) - h264-576p.mkv': No such file or directory
Script Finished Wed, 13 Feb 2019 23:30:43 +0000

 

 

Edit: PS I am using teamdrive and the UnionFS cleanup script from the original post.

Edited by shimlapinks
clarification

So it looks like things move from the upload folder instantly to the union folder. Is this the way it should be?

 

Also how do I know that files are getting uploaded and are off my local unraid box?

6 hours ago, shimlapinks said:

 I spent two nights trying to get this to work and I'm finally just about there, thank you for this.

 Just 1 thing, when I delete files it is putting them back where I deleted them from.

I.e:

  • If I delete a file directly (this is how you are meant to delete media files right?)  from mount_unionfs>google_vfs/tvshows/Fawlty Towers....mkv
  • It goes into the

mount_unionfs>google_vfs>.unionfs>tvshows> folder (which I dont have access to unless I reset the permissions in Unraid to that folder)

(The .mkv is also now in the rclone_upload folder.)

  • So if I run the unionFS cleanup script, it gives the below output and then puts the file right back to where I deleted it from, any ideas please?

 

3.02.2019 23:30:43 INFO: starting unionfs cleanup.
rm: cannot remove '/mnt/user/mount_rclone/google_vfs/mnt/user/mount_unionfs/google_vfs/.unionfs/TVShows/Fawlty Towers - S01E01 - A Touch of Class - (1975) - h264-576p.mkv': No such file or directory
rm: cannot remove '/mnt/user/mount_rclone/google_tdrive_vfs/mnt/user/mount_unionfs/google_vfs/.unionfs/TVShows/Fawlty Towers - S01E01 - A Touch of Class - (1975) - h264-576p.mkv': No such file or directory
Script Finished Wed, 13 Feb 2019 23:30:43 +0000

 

 

Edit: PS I am using teamdrive and the UnionFS cleanup script from the original post.

I had/have the same problem which I'm still trying to work out. But the .unionfs folder is sort of like a recycling bin. The errors you get are caused because you don't have permission to the folder. The only way to get this fixed is running the safe permissions on the share. Run it on the right share though where the problem is. In your case this is probably the rclone_upload/google_vfs folder.

 

 

6 hours ago, mestep said:

So it looks like things move from the upload folder instantly to the union folder. Is this the way it should be?

 

Also how do I know that files are getting uploaded and are off my local unraid box?

The union folder shows both your cloud files as your local files (which are in your upload folder) so it's not moving anything to the union since the union does not contain any files itself. Upload of your local files is done through the upload script. So if that one runs you know it's uploading. And if you want to see how much files are still stored locally you can just check the rclone_upload folder.

While reading this, one thing comes on my mind.

 

Lets say i only have files mounted on RW directorys, do i even need a cleanup script? 

 

Because if i have read and write permissions, and i delete a file, it should get deleted, correct? :)

Edited by nuhll

7 hours ago, Kaizac said:

The union folder shows both your cloud files as your local files (which are in your upload folder) so it's not moving anything to the union since the union does not contain any files itself. Upload of your local files is done through the upload script. So if that one runs you know it's uploading. And if you want to see how much files are still stored locally you can just check the rclone_upload folder.

 

I don't mean to sound stupid or anything. If I put stuff in the union folder instead of the upload folder, it will still get uploaded to the cloud, right? Right now I have sabnzbd set to download to the upload folder, can/should I have it set to download to union?

As far as i know there are 2 ways to add data.

 

direct way is to put it into the combined folder of your remote and local storage (should be union folder) - it gets direct streamed (uploaded) if something goes wrong, data may be lost.

 

Better (safer) way is to upload it via script, e.g. the upload script on first post.

Edited by nuhll

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.