how to install rclone as service on windows

Copy nssm.exe to same directory that rclone is in. I launched NSSM, by opening an elevated command line. Type cmd in the search bar and right click and choose “run as administrator.”

cd c:\rclone (or wherever you have rclone located)
nssm install “Rclone Mount”
Fill in the info below
Still in the command prompt, type services.msc
Scroll down and choose your service and right click and start it.
If it fails to start, stop the service
Go back to command prompt and run sc.exe delete “Rclone Mount”
Enter the command from step 2 above and repeat until you complete everything with no typos and it works.
Going to post the various parts of NSSM that I’ve filled in. Originally it was failing because when I did the copy paste, for some reason it was doing one dash and one hyphen. I could paste it to command line and it would work. But to NSSM it would change it to hyphen. So I ended up just typing it out, instead of copy paste.

Application tab:
Path: C:\rclone\rclone.exe
Startup Directory: C:\rclone
Arguments: mount gdrive-crypt: s: --config “C:\rclone\rclone.conf”
Service name: Rclone Mount

Details tab:
Display name: Rclone Mount
Description: Automatically mounts the encrypted google drive using rclone.

Exit actions tab:
Delay restart by: 10000 ms (10 seconds)

If I didn’t reference it above, I didn’t change it away from defaults.

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source