Onedrive Personal CloudSync?

Paddy0293

Dabbler
Joined
Sep 28, 2022
Messages
35
@Cellobita and all

I updated today to cobia and tried via rclone and it works :)

i checked too if the rclone.cfg after restart still active and it is :)

@ABain maybe you can make a notice for a workaround with rclone

im happy :)
 

Cellobita

Contributor
Joined
Jul 15, 2011
Messages
107
If you're syncing via script to Sharepoint - which uses the same OneDrive remote - keep this in mind (from rclone's own docs):

"There is a known issue that Sharepoint (not OneDrive or OneDrive for Business) silently modifies uploaded files, mainly Office files (.docx, .xlsx, etc.), causing file size and hash checks to fail. There are also other situations that will cause OneDrive to report inconsistent file sizes. To use rclone with such affected files on Sharepoint, you may disable these checks with the following command line arguments:"

--ignore-checksum --ignore-size

While doing additional testing, I found out that errors mentioning size differences will also be reported when syncing from OneDrive/Sharepoint to TrueNAS; in this case --ignore-size seems to be enough to avoid the issue.
 

Kiva

Cadet
Joined
Nov 4, 2023
Messages
4
Hi all. I have successfully brought back the beloved OneDrive CloudSync integration to my machine. Here's the instruction:

USE AT YOUR OWN RISK

1. Open a shell to TrueNAS Scale 23.10, both ssh and the terminal from WebUI are ok.
2. Run the following command. Again, USE AT YOUR OWN RISK.

git clone https://github.com/imkiva/onedrive-sdk-python
cd onedrive-sdk-python/
cp -ar src/onedrivesdk /usr/lib/python3/dist-packages
cp -ar src/python3/request /usr/lib/python3/dist-packages/onedrivesdk

3. Run the following command, which basically reverts this PR: https://github.com/truenas/middleware/pull/11143

cd /usr/lib/python3/dist-packages/middlewared/rclone/remote/
wget https://raw.githubusercontent.com/t...lewared/middlewared/rclone/remote/onedrive.py
sed -i '1d;$d' onedrive.py
 

AndrewSpec

Cadet
Joined
Feb 22, 2023
Messages
1
Hi all. I have successfully brought back the beloved OneDrive CloudSync integration to my machine. Here's the instruction:

USE AT YOUR OWN RISK

1. Open a shell to TrueNAS Scale 23.10, both ssh and the terminal from WebUI are ok.
2. Run the following command. Again, USE AT YOUR OWN RISK.



3. Run the following command, which basically reverts this PR: https://github.com/truenas/middleware/pull/11143

Nice. It's working in my setup.
 

ABain

Bug Conductor
iXsystems
Joined
Aug 18, 2023
Messages
172
@Cellobita and all

I updated today to cobia and tried via rclone and it works :)

i checked too if the rclone.cfg after restart still active and it is :)

@ABain maybe you can make a notice for a workaround with rclone

im happy :)
Good to know you found a solution that works for you, I'll give this request some thought but one great way to support others in the community is to contribute this to the resources section : https://www.truenas.com/community/resources/
 

frigo

Cadet
Joined
Nov 13, 2023
Messages
1
Hi all. I have successfully brought back the beloved OneDrive CloudSync integration to my machine. Here's the instruction:

USE AT YOUR OWN RISK

1. Open a shell to TrueNAS Scale 23.10, both ssh and the terminal from WebUI are ok.
2. Run the following command. Again, USE AT YOUR OWN RISK.



3. Run the following command, which basically reverts this PR: https://github.com/truenas/middleware/pull/11143

Great Work! Thank you for your contribution, it really helped me a lot.
 

boggie1688

Explorer
Joined
Jul 9, 2015
Messages
58
Hi all. I have successfully brought back the beloved OneDrive CloudSync integration to my machine. Here's the instruction:

USE AT YOUR OWN RISK

1. Open a shell to TrueNAS Scale 23.10, both ssh and the terminal from WebUI are ok.
2. Run the following command. Again, USE AT YOUR OWN RISK.



3. Run the following command, which basically reverts this PR: https://github.com/truenas/middleware/pull/11143
Thank you for this. I would have been in a pickle without this.
 

rvega

Cadet
Joined
Aug 25, 2023
Messages
4
Hi all. I have successfully brought back the beloved OneDrive CloudSync integration to my machine. Here's the instruction:

USE AT YOUR OWN RISK

1. Open a shell to TrueNAS Scale 23.10, both ssh and the terminal from WebUI are ok.
2. Run the following command. Again, USE AT YOUR OWN RISK.



3. Run the following command, which basically reverts this PR: https://github.com/truenas/middleware/pull/11143

Great work!! I was seriously considering rolling back to Bluefin just because of this missing feature!! Thanks a lot!!
 

Black_Duck

Explorer
Joined
Oct 8, 2022
Messages
61
Hi all. I have successfully brought back the beloved OneDrive CloudSync integration to my machine. Here's the instruction:
Thanks @Kiva.
worked perfectly. Note, I did have to restart Truenas to update the provider list in the backup credentials.
 

Cellobita

Contributor
Joined
Jul 15, 2011
Messages
107
Hi all. I have successfully brought back the beloved OneDrive CloudSync integration to my machine. Here's the instruction:

USE AT YOUR OWN RISK

1. Open a shell to TrueNAS Scale 23.10, both ssh and the terminal from WebUI are ok.
2. Run the following command. Again, USE AT YOUR OWN RISK.



3. Run the following command, which basically reverts this PR: https://github.com/truenas/middleware/pull/11143

I suppose this would have to be done after every update, no?

I have been using a script and a standalone version of rclone, as mentioned previously, and it is also working very well; it allows me to receive a report with the list of synchronized files, useful in my particular situation.
 

Kiva

Cadet
Joined
Nov 4, 2023
Messages
4
I suppose this would have to be done after every update, no?

Yes. One has to run those commands after every update. The worst thing is the solution is not guaranteed to work at that time.

Apart from this. The solution is not elegant at all, as it hacks into the system, which is unacceptable in a production environment. I would really appreciate it if the TrueNAS team would accept my patch, but that's up to Microsoft :(

And because of this "accident" (I call it an accident as I cannot find any changelog related to the OneDrive integration in the Cobia release notes), I personally chose to not upgrade TrueNAS anymore, to avoid things alike happening again. Honestly, I am considering switching to a homebrew Debian with the OpenZFS module. At least I can know every detail of it.
 

Cellobita

Contributor
Joined
Jul 15, 2011
Messages
107
@Kiva why so complicated?

Use rclone everything ist fine :)

Second that. Create a dataset for
  • rclone (a standalone executable),
  • its config file
  • and a script,
and it'll work every time, and be upgrade-safe.
 

Kiva

Cadet
Joined
Nov 4, 2023
Messages
4
@Kiva why so complicated?

Use rclone everthing ist fine :)

I believe I am a professional programmer :) It is not complicated at all for me. You know what, it only took me 10 minutes to bring it back with the solution above after I found that the OneDrive integration is gone, which is much quicker than reading the rclone manual and composing a correct and working config file.
 

Kiva

Cadet
Joined
Nov 4, 2023
Messages
4
Second that. Create a dataset for
  • rclone (a standalone executable),
  • its config file
  • and a script,
and it'll work every time, and be upgrade-safe.

Yes. Thanks for your suggestion. I would give it a try someday :) But I would keep my naive workaround for now as it also works well in my particular setup.
 

Cellobita

Contributor
Joined
Jul 15, 2011
Messages
107
Yes. Thanks for your suggestion. I would give it a try someday :) But I would keep my naive workaround for now as it also works well in my particular setup.

For my particular case, it was useful to have a daily report with the result of the rclone sync task sent by e-mail - easy to do with a script, not possible with the built-in tool. YMMV.
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
I call it an accident as I cannot find any changelog related to the OneDrive integration in the Cobia release notes

IX states why they removed it, it may not be in the changelog but clearly not an accident.
 

andyjay777

Dabbler
Joined
Jan 31, 2022
Messages
27
Just to be clear, if I upgrade to 23.10, then OneDrive will no longer be an option in the Cloud Credentials? And my main source of offsite cloud backup will be gone?

(screenshot is from 22.12.4.2)
1700860310090.png
 
Top