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

7 hours ago, sheldz8 said:

The exclusions are on the upload script but I think it deletes the whole folder afterwards.

Whatever is in the local folder will be copied over unless it is excluded.

 

I wonder if the bandaid answer is to have a script that runs before the upload and move the metadata to the array. Probably not the best solution though. Would've been great if MergerFS can orchestrate which files go to which folder. 

  • Replies 3.4k
  • Views 633.5k
  • 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

  • Author
8 hours ago, sheldz8 said:

The exclusions are on the upload script but I think it deletes the whole folder afterwards.

Whatever is in the local folder will be copied over unless it is excluded.

Excluded files aren't deleted - they stay local and aren't uploaded

 
I wonder if the bandaid answer is to have a script that runs before the upload and move the metadata to the array. Probably not the best solution though. Would've been great if MergerFS can orchestrate which files go to which folder. 
You can use radarr or sonarr to download the metadata

Sent from my SM-A305F using Tapatalk

Hi guys,

 

 

Got a quick question is there a way to change the upload script to copy a specific folder and encrypt it and sync it with gdrive ?

 

 

For exemple i wan to copy mtn/user/plex to gdrive with the option copy and not move how should i change the upload script ?

thx

Edited by francrouge

  • Author
7 hours ago, francrouge said:

Hi guys,

 

 

Got a quick question is there a way to change the upload script to copy a specific folder and encrypt it and sync it with gdrive ?

 

 

For exemple i wan to copy mtn/user/plex to gdrive with the option copy and not move how should i change the upload script ?

thx

Easy:

 

RcloneCommand="copy"

 

All explained in the script

Edited by DZMM

8 hours ago, DZMM said:

Easy:

 

RcloneCommand="copy"

 

All explained in the script

hi yes i changed that but  i would like to upload a specific folder and not have to move it in mount_upload 

 

is it posssible ?

 

thx again

  • Author
1 hour ago, francrouge said:

hi yes i changed that but  i would like to upload a specific folder and not have to move it in mount_upload 

 

is it posssible ?

 

thx again

Probably, just create a new instance of the script maybe and --include only that path

https://rclone.org/filtering/

1 hour ago, DZMM said:

Probably, just create a new instance of the script maybe and --include only that path

https://rclone.org/filtering/

thx

1 hour ago, DZMM said:

Probably, just create a new instance of the script maybe and --include only that path

https://rclone.org/filtering/

would it be better if i move my folder with mergefs ? does the upload script works with that also ? thx a lot

  

6 hours ago, francrouge said:

would it be better if i move my folder with mergefs ? does the upload script works with that also ? thx a lot

when you upload; it will use "--filter" if you set it instead of "--exclude"

 

the mount script works with mergerfs the upload script is optional. All your Apps (Radarr, Sonarr, Plex, etc) should be volume mounted to "/path/to/mergerfs, rw" Mergerfs creates a virtual directory which duplicate of the remote drive and also the local folder (temporary storage), whatever is in the local folder shows in mergerfs but not the remote folder until it uploads.

 

 

Edited by sheldz8

On 8/30/2021 at 1:30 AM, axeman said:

I might have asked this before (can't seem to find it)... but are the exclusions on the upload script? Do you have something else to move them so that they are somewhere on the array - or do they basically stay in /local/  ? 

 

 I have mergerFS joining my files from my Array: /mnt/user/Videos, Cache Drive: /mnt/user/local, and of course Rclone mount/cloud.

 

Wondering if there's a way to force mergerFS to only copy certain files directly to /mnt/user/Videos. 

 

 

https://rclone.org/filtering/

On 9/1/2021 at 7:56 PM, sheldz8 said:

  

when you upload; it will use "--filter" if you set it instead of "--exclude"

 

the mount script works with mergerfs the upload script is optional. All your Apps (Radarr, Sonarr, Plex, etc) should be volume mounted to "/path/to/mergerfs, rw" Mergerfs creates a virtual directory which duplicate of the remote drive and also the local folder (temporary storage), whatever is in the local folder shows in mergerfs but not the remote folder until it uploads.

 

 

so if i want to put a local folder i need to add it in this ?

 

# Add extra paths to mergerfs mount in addition to LocalFilesShare
LocalFilesShare2="ignore" # without trailing slash e.g. /mnt/user/other__remote_mount/or_other_local_folder.  Enter 'ignore' to disable

 

Wait  i need to add my folders in 

MountFolders=\{"downloads/complete,downloads/intermediate,downloads/seeds,movies,tv"\} # comma separated list of folders to create within the mount

  option ?

 

And can you explain how the files in merges fs are going to be uploaded since the upload script is optional ? please

 

thx again

Edited by francrouge

so if i want to put a local folder i need to add it in this ?
 
# Add extra paths to mergerfs mount in addition to LocalFilesShare
LocalFilesShare2="ignore" # without trailing slash e.g. /mnt/user/other__remote_mount/or_other_local_folder.  Enter 'ignore' to disable
 
 
And can you explain how the files in merges fs are going to be uploaded is the upload script is optional ? please
 
thx again
Sorry I meant that it is optional if you don't plan on uploading anything.

I misread your original post when I said that.

LocalFileShare2 is for a 2nd remote drive and

From what I read now again on your original post is that you want to copy plex to gdrive? Do you want to do this alongside the local share? I don't think that will work because I presume it will use move/copy/sync that you set for the first local Share.

I would suggest using something like rsync to auto backup the plex folder periodically and point it to backup to the local folder.

I haven't done this before because I know it usually corrupts the backup folder and plex restore is basically useless

Sent from my SM-A305F using Tapatalk

23 hours ago, sheldz8 said:

Sorry I meant that it is optional if you don't plan on uploading anything.

I misread your original post when I said that.

LocalFileShare2 is for a 2nd remote drive and

From what I read now again on your original post is that you want to copy plex to gdrive? Do you want to do this alongside the local share? I don't think that will work because I presume it will use move/copy/sync that you set for the first local Share.

I would suggest using something like rsync to auto backup the plex folder periodically and point it to backup to the local folder.

I haven't done this before because I know it usually corrupts the backup folder and plex restore is basically useless

Sent from my SM-A305F using Tapatalk
 

Hi Main goal is to have one folder with all my local medias and gdrive

 

So Main folder = Medias + Gdrive

 

So i think mergefs would worked for that

 

But the only issue that i'm trying to solved is if i want to move things from local media to gdrive automaticly how i do it. (uploaded)

 

Exemple downloaded files that are in my local media and can be uploaded in gdrive

 

thx again

 

@DZMMHi quick question for you.

 

I always get api ban bust the 750 Go per day i thought with the command you add --drive-stop-on-upload-limit it would stop before.

 

Do you know if its still working ?

 

Thx a lot 

 

have a nice day

  • Author
1 hour ago, francrouge said:

@DZMMHi quick question for you.

 

I always get api ban bust the 750 Go per day i thought with the command you add --drive-stop-on-upload-limit it would stop before.

 

Do you know if its still working ?

 

Thx a lot 

 

have a nice day

my upload doesn't let me bust 750GB/day (moved home) anymore.  stop on limit stops the download when the error occurs, not before i.e. it is not preventative - it just stops the script constantly hammering away for 24 hours to upload files.  If you want to upload >750GB/day, use service accounts with the script.

Hi Main goal is to have one folder with all my local medias and gdrive
 
So Main folder = Medias + Gdrive
 
So i think mergefs would worked for that
 
But the only issue that i'm trying to solved is if i want to move things from local media to gdrive automaticly how i do it. (uploaded)
 
Exemple downloaded files that are in my local media and can be uploaded in gdrive
 
thx again
 
Just use a cron job to run whenever you want on the user script page set to custom

Example every 6 hours use: 0 */6 * * *

As long as your upload script is setup correctly it will auto run every 6 hours without failing if there are files to upload and if you used below 750gb.

Sent from my SM-A305F using Tapatalk


  • 2 weeks later...

Hey, I got errors from the Upload script since this morning (been using it for more than a year now without any problems) :

 

DEBUG : pacer: low level retry 1/10 (error googleapi: Error 403: User Rate Limit Exceeded. Rate of requests for user exceed configured project quota. You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordingly.)
DEBUG : pacer: Rate limited, increasing sleep to 2.62s

 

BUT in the meantime, the script upload files to my drive perfectly.
This cause me some issues because the script never ends (this error appear infinitely), so when new files are added, I need to restart my server to stop the script, and launch it again!


Any Idea ?

 

Also, is there a way to kill this script? I tried with grep but can't find it.

Edited by Lucka

Hey, I got errors from the Upload script since this morning (been using it for more than a year now without any problems) :
 
DEBUG : pacer: low level retry 1/10 (error googleapi: Error 403: User Rate Limit Exceeded. Rate of requests for user exceed configured project quota. You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordingly.)DEBUG : pacer: Rate limited, increasing sleep to 2.62s

 
BUT in the meantime, the script upload files to my drive perfectly.
This cause me some issues because the script never ends (this error appear infinitely), so when new files are added, I need to restart my server to stop the script, and launch it again!

Any Idea ?
 
Also, is there a way to kill this script? I tried with grep but can't find it.







You uploaded more than whatever amount of GB you set within 24 hours it should be fine now. Also ensure  --drive-stop-on-upload-limit is set on the upload script because it will cause a loop if it hits 750gb it can cause issues with your gdrive api. You should be able to cancel the script on the plugin page

https://github.com/rclone/rclone/issues/3857

Sent from my SM-A305F using Tapatalk








Hi all

I'm having this strange issue where all the files in mount_rclone does not get deleted after upload? or am i missing something? 

image.thumb.png.9b62a569daf6246271d54f684942e10d.png

 

this are uploading, but it would seem that it doesnt get cleaned up afterwards? Maybe something someone have an answer for? 

Mount: https://pastebin.com/dwKWJcuf

Upload:  https://pastebin.com/zmveVkA1 

Hi all

I'm having this strange issue where all the files in mount_rclone does not get deleted after upload? or am i missing something? 

image.thumb.png.9b62a569daf6246271d54f684942e10d.png
 
this are uploading, but it would seem that it doesnt get cleaned up afterwards? Maybe something someone have an answer for? 

Mount: https://pastebin.com/dwKWJcuf

Upload:  https://pastebin.com/zmveVkA1 
What does the upload logs say after uploading is finished?

Sent from my SM-A305F using Tapatalk

5 minutes ago, sheldz8 said:

What does the upload logs say after uploading is finished?

Sent from my SM-A305F using Tapatalk
 

I have attached my upload log, it would seem that they are getting stuck under something called gdrive/VFS

log.txt

I have attached my upload log, it would seem that they are getting stuck under something called gdrive/VFS
log.txt
The txt file is corrupt

Sent from my SM-A305F using Tapatalk

4 minutes ago, sheldz8 said:

The txt file is corrupt

Sent from my SM-A305F using Tapatalk
 

I have put it on pastebin:  https://pastebin.com/wbtmhGP2

maybe it has something to do with it saying directory not empty? cannot delete

I have put it on pastebin:  https://pastebin.com/wbtmhGP2

maybe it has something to do with it saying directory not empty? cannot delete
The files are being deleted after each upload so it's probably excluded files preventing it from deleting the folder.

If you want the folders deleted even though the media files are uploaded then you would need to edit the upload script to force remove directories that aren't empty.

Sent from my SM-A305F using Tapatalk



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.