OneDrive Cloud sync

Problem /Justification

Many users rely on OneDrive as their primary cloud storage. Without integration, they resort to complex, manual workarounds, which are frustrating and inefficient. This impacts both paying customers and non-profits using free storage through licensing appeals. Offering OneDrive sync would simplify workflows and increase the value of TrueNAS for these users.

Impact
(How is this feature going to impact all TrueNAS users? What are the benefits and advantages? Are there disadvantages?)

The lack of OneDrive cloud sync in TrueNAS limits its appeal and forces users to seek alternative methods to integrate their storage, which can be inefficient and cumbersome.

User Story
(Please give a short description on how you envision some user taking advantage of this feature, what are the steps a user will follow to accomplish it)

A user logs into TrueNAS and seamlessly connects their OneDrive account through an integrated sync feature. After authentication, they can easily select specific files or folders from their OneDrive storage to sync with TrueNAS.

Whenever changes are made to the synced files whether through the cloud or locally, those updates are automatically reflected in real-time. This allows the user to manage their work effortlessly, whether they are a professional collaborating on projects or a non-profit managing essential documents.

No manual interventions or complex methods are needed, saving time and improving productivity.

2 Likes

This is interesting. Im fairly sure this is an option in CORE (not that I ever used it) but looking at current SCLAE I canā€™t see it listed only to sync a Microsoft Blob among other non-microsoft sync options.

Adding OneDrive sync would make things easier for users who rely on it for cloud storage, saving time by eliminating complicated workarounds.

rclone supports OneDrive, so this is technically possible.

Note that it requires temporarily accepting an incoming connection from the Internet to allow a token to be passed from MS, though.

OneDrive integration is phenomenally complex, though, under the hood. Even MSā€™s own clients are buggy and unreliable in my experience (particularly when mixing with non-MS file systems and naming conventions/restrictions), so Iā€™d manage your expectations as to how well this would work, particularly with regards to any use of a phrase like ā€œin real timeā€ :face_with_raised_eyebrow:

That said, whatā€™s the benefit of allowing a user to see their OneDrive files on a NAS, as opposed to ā€œlocallyā€ within the OneDrive client on their PC or Mac? Surely the point of using cloud storage is to need local storage?

TrueNAS used to support OneDrive in the past, but it was removed due to relying on an out-of-date official Python library.

There arenā€™t any up-to-date libraries around. We are not opposed to having this feature but it must be maintainable/supportable without much burden.

If someone is able to point how to achieve the same through pure rclone CLI or some GraphQL code we will consider adding it back.

Hello, as per my knowledge you can use the rclone cli to sync into OneDrive

Also there is a OneDrive SDK for python which you could use. Iā€™ll put the link below!

1 Like

Hi, say until when did TrueNAS support OneDrive? Because in TrueNAS-Core I had no problem with OneDrive Cloud Sync until about 2 weeks ago. Since then the task keeps failing even though the dry-run is successfullā€¦

You seem to have not really read or paid attention to anything I said :wink:

SCALE Bluefin IIRC. It was not removed from CORE as far as I can remember. How is it failing now? Any obvious errors being thrown out?

Ah well then it must be something on my side, sorry.

Yeah ā€œfailed to open source object: unauthenticated: Unauthenticatedā€ it sees the files but canĀ“t copy them. Credential is valid.

Hello, how about this, this user has updated the python-OneDrive-sdk

That has been discussed in the PR link I shared.

maybe add that via rclone? saw someone managed it in other onedrive feature request here: Cloud Sync provider support for OneDrive & Sharepoint - #2 by stk

Hello, @william I talked to one of the developers of the OneDrive-sdk-python, he said that they might have to archive the repository since it hasnā€™t been updated for over 8 years. However they have a much better, and up to date SDK for all of Microsoft Graph, which includes OneDrive APIs.

Have a look at GitHub - microsoftgraph/msgraph-sdk-python

Could you use this to get the service back?

That could possibly work, yes. I wasnā€™t aware of that library.

We will consider it if there is enough traction in the community to bring it back (votes).

Thanks!

5 Likes

This looks useful. I suspect a fair number of us have access to OneDrive storage bundled with some Microsoft 365 SKU that weā€™re not using. I know I do.

Does anyone know if the nuts-and-bolts remain bifurcated across enterprise Office 365 OneDrive vs retail/consumer? Or are they on the same page these days? The MS client was always so problematic that I gave up on both years ago.

Hello, how many votes would be counted as enough?

ā€¦in coding ( and this is my understanding ), pressure ā€¦pushes. Votes are pressure.
How the team feels about it and how troublesome is to maintain is a greater factor.
Then thereā€™s the money team ( as I call it ) and that has reasons beyond technical logic.

To answer a question I wasnā€™t asked, Iā€™d say the more the merrier.
But to be honest, donā€™t go into a promotional campaign as it may serve no purpose. Like in ā€œabandon all hope ye who enter hereā€ kind of situation.

PS: I aim to avoid the heartache that comes from hopes that donā€™t come soon enough. Iā€™ve got kind of bitter from those.

PS2: I just voted for this :innocent:

2 Likes

Hey, did you solve the problem with one drive? I am facing the same issueā€¦ everything looks fine from a configuration point of view but it does not work anymore.