I've got Rclone working well with google drive, windows 7 and nssm to install the service.
Now I want to mount a second drive.
My question is - Can I add the new drive I setup with Rclone to the existing service or do I need to create a new service in nssm for each drive that I set up?
If so, How do I do this/where do i find the file i'd need to add the new mount config to? or is there a section in nssm install i'm not seeing where you can add to an existing service?
I've searched the forums already - the closest thing i found was for linux setups and it said something about making two scripts and then combining them. There was another post that seemed simliar but the answer was to go to the home page for a selected provider - which is helpful for setup but not this specific question about adding services.
I’m not sure how to do that.
So when I mounted my first drive i opened nssm install via cmd prompt. I then chose rclone.exe as path and rclone as startup directory
Then I add my attributes and add rclone mount as the service name.
So where in that does this batch file fall in? Or how would I do this if it does not?
Thank you for the tip. I’ll give this a try.
Do I make the batch file just as you write it but with my drive names and then link them via two separate attributes?(separated by a return in the attributes box?)
here's the guide i followed to set up my original drive - stuff like "username" and the actual drive letter or name were changed:
Type the following under Applications:
Startup Directory: C:\rclone
Arguments: mount --allow-other --dir-cache-time 72h --drive-chunk-size 64M --log-level INFO --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit off gdrive: X: --config "C:\Users\username\.config\rclone\rclone.conf" --vfs-cache-mode writes
Service Name: RcloneMount
Under Exit type: 10000 ms, Select the Restart application setting
You should now see a folder that says gdrive (X:) under your Windows Explorer. If not, type nssm start RcloneMount
So would the arguments go into the batch file then? or am I createing the batch file with just the lines as you wrote them before...replacing the remote1 with my created drive name and drive letters with what letters i'd like to use?
start rclone mount : x:
start rclone mount y:
save the file as rclone mount.bat
use this .bat file for the path and the folder it resides in for the dir
without the arguments how would it know to use those settings?
gave it a try. unfortunately this did not work.
I first removed the service I created for the first drive, restarted, then created the new service with this bat file.
I copied and pasted your text into the bat file changed remote1 and remote 2 to the rclone drive's name and the x and y to the letters I wanted. and changed the same in the arguments that followed.
I'd like to figure this out if possible so i'll keep trying.
something new i noticed:
When I check my serices in msconfig it says that the RcloneMount service is "paused". If i try to resume it i get an error saying windows could not resume the RcloneMount service.... this service did not return an error..."
this is what's in my 'mounts.bat' file:
start rclone plexdrive p: --allow-other --dir-cache-time 72h --drive-chunk-size 64M --log-level INFO --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit off gdrive: p: --config "C:\Users\sli4.config\rclone\rclone.conf" --vfs-cache-mode writes
you've lost me now.
I dont really know why I have the things I have here. I mentioned before my arguments were copied off of a tutorial but these commands were copied from your post - I just edited the names of remote1 and remote 2 and the drive letters as we discussed in the following replies in this thread.
so I'm confused - should I take out the "gdrive: p:" and "ColdStorage: s:" from the beginning? ...because they're referenced later in the command? I had thought one was the reference to the item in the config file and one was what I wanted it to be mounted as.