Skip to content

Repository files navigation

rclone-sharepoint-mount-helper

A small Windows helper for keeping an rclone SharePoint mount working.

It refreshes expired SharePoint session cookies from an already signed-in browser profile, updates the matching rclone remote, and can start the mount again when needed.

What it helps with

rclone mounts that rely on SharePoint WebDAV cookies can stop working once those cookies expire.

This project automates the annoying part: refreshing the cookies and getting the mount back up without manually editing rclone.conf.

Features

  • Refreshes SharePoint cookies only when needed
  • Updates the correct rclone remote automatically
  • Creates a backup before changing rclone.conf
  • Can start or recover an rclone mount
  • Works with Chrome, Chromium, and Edge on Windows

Requirements

  • Windows
  • Python 3.10 or newer
  • rclone
  • Chrome, Chromium, or Edge
  • A browser profile that is already signed in to the SharePoint site you want to use

Install

Install the Python dependencies:

python -m pip install -r requirements.txt

Usage

Run the launcher:

.\Start-RcloneSharePointMount.ps1

Use a specific remote:

.\Start-RcloneSharePointMount.ps1 -RemoteName MySharePoint

Preview what would happen without changing anything:

.\Start-RcloneSharePointMount.ps1 -DryRun

Force a refresh:

.\Start-RcloneSharePointMount.ps1 -ForceRefresh

Example of a remote

This helper expects an existing rclone WebDAV remote that points to a SharePoint document library.

Example:

[NHLStenden]
type = webdav
url = https://newuniversity-my.sharepoint.com/personal/martin_bosgra_nhlstenden_com/Documents
vendor = other

Contributing

Contributions are welcome! Please fork the repository and submit pull requests.

License

This project is licensed under the MIT License.

Acknowledgements

NHL Stenden: For providing the foundational code and utilities. Martin Bosgra: Author and primary maintainer of the project.

About

A small Windows helper for keeping an rclone SharePoint mount working.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages