Run rclone as service on Windows — C# — DIY

Let us take a look what we need:

  1. Visual Studio (Community Edition works fine)
  2. .Net Framework 4.8
  3. WinFSP
  4. rclone
  5. Some patience to read this post to the end :)

Binary Installation, Configuration, Service Compilation and Creation

  • Install software from steps 1 to 3 in previous section
  • Extract rclone and add path to folder where rclone was extracted to system %PATH%
  • run rclone config and configure cloud connection. Please see rclone documentation for details.
  • Clone github repository
  • Navigate to cloned github folder and import Solution to Visual Studio
  • Example in Service1.cs covers mounting Azure blob storage using SAS — example assumes , that you already configured rclone to use Azure. You can configure rclone with different cloud provider and replace cParams value
  • Once you are ok with parameters rebuild project.
  • You can now use c:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe- or whatever version you have from 4.x

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store