OneDrive on Linux

%3CLINGO-SUB%20id%3D%22lingo-sub-1318644%22%20slang%3D%22en-US%22%3EOneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1318644%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20like%20to%20use%20OneDrive%20on%20Ubuntu%2C%20May%20be%20working%20with%20all%20or%20some%20folders.%20Since%20there%20is%20no%20office%20OneDrive%20client%20in%20Linux%2C%20I've%20searched%20online%20and%20found%20%22%3CA%20href%3D%22https%3A%2F%2Frclone.org%2Fonedrive%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Erclone%3C%2FA%3E%22%20but%20not%20sure%20how%20secure%20it%20is%20or%20is%20there%20any%20other%20alternative%20out%20there%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1318644%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1319092%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1319092%22%20slang%3D%22en-US%22%3EAFAIK%2C%20Microsoft%20has%20not%20shared%20any%20plans%20to%20support%20Linux%20in%20regards%20of%20ODFB.%20However%2C%20it%20seems%20there%20is%20an%20open%20source%20project%20about%20OneDrive%20Consumer%20support%20in%20Linux%3A%20%3CA%20href%3D%22https%3A%2F%2Faskubuntu.com%2Fquestions%2F804301%2Fhow-to-sync-onedrive-business-office-365-on-linux%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faskubuntu.com%2Fquestions%2F804301%2Fhow-to-sync-onedrive-business-office-365-on-linux%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1319153%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1319153%22%20slang%3D%22en-US%22%3EThank%20you%2C%20I%E2%80%99ll%20check%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522220%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522220%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F515817%22%20target%3D%22_blank%22%3E%40muratkazanova%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20the%20maintainer%20of%20the%20free%20OneDrive%20Client%20for%20Linux%2C%20which%20supports%20OneDrive%20Personal%2C%20OneDrive%20for%20Business%2C%20OneDrive%20for%20Office365%20and%20Sharepoint%2C%20and%20fully%20supports%20Azure%20National%20Cloud%20Deployments%20for%20those%20that%20require%20it.%20It%20fully%20supports%20shared%20folders%20-%20both%20OneDrive%20Personal%20and%20OneDrive%20Business%20Shared%20Folders.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20further%20information%20%26amp%3B%20details%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fabraunegg.github.io%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fabraunegg.github.io%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fabraunegg%2Fonedrive%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fabraunegg%2Fonedrive%2F%3C%2FA%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThis%20is%20an%20actively%20maintained%20client%20which%20was%20originally%20forked%20from%20the%20'skilion'%20client%20(which%20unfortunately%20most%20of%20the%20Internet%20still%20references).%20The%20'skilion'%20client%20was%20abandoned%20in%202018.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1778516%22%20slang%3D%22fr-FR%22%3ERe%3A%20OneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1778516%22%20slang%3D%22fr-FR%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F728655%22%20target%3D%22_blank%22%3E%40abraunegg!%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20stumbled%20on%20this%20post%20this%20morning%20as%20I'm%20trying%20to%20%22mirror%22%20my%20Win10%20laptop%20to%20a%20Linux%20machine%20(using%20Windowsfx%20distortion%2C%20to%20save%20all%20my%20bad%20%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2Fimages%2Femoticons%2Flaugh_40x40.gif%22%20alt%3D%22%3Alol%3A%22%20title%3D%22%3Alol%3A%22%20%2F%3E%20clothes).%3C%2FP%3E%3CP%3EI've%20installed%20your%20software%20and%20managed%20successfully%20to%20sync%20from%20OneDrive%20to%20the%20Linux%20laptop%20(using%20onedrive%20--synchronize%20--single-directory%20command)%20but%20I'm%20now%20wondering%3A%3C%2FP%3E%3COL%3E%3CLI%3EIf%20the%20sync%20is%20automatically%20done%20in%20the%20background%20when%20I%20edit%20files%20in%20the%20local%20storage%2C%3C%2FLI%3E%3CLI%3EIf%20I%20have%20to%20create%20and%20customize%20the%20config%20file%2C%3C%2FLI%3E%3CLI%3EIf%20I%20also%20need%20to%20create%20the%20sync_list%20file%2C%3C%2FLI%3E%3CLI%3EIf%20I%20need%20to%20run%20onedrive%20as%20a%20system%20service%20to%20get%20automatic%20sync.%3C%2FLI%3E%3C%2FOL%3E%3CP%3ESorry%20for%20the%20dummy%20questions%2C%20but%20I'm%20a%20bit%20new%20to%20Linux%20and%20all%20those%20things%20still%20look%20a%20bit%20of%20%22magical%20dust%22%20to%20me!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1778748%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1778748%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F831580%22%20target%3D%22_blank%22%3E%40jlgarnier%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGlad%20you%20found%20the%20tool%20useful%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20regards%20to%20your%20questions%3A%3C%2FP%3E%3CP%3E%26gt%3B%26nbsp%3B%3CSPAN%3Eonedrive%20--synchronize%20--single-directory%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20this%20does%20is%20perform%20a%20single%20sync%2C%20of%20the%20single%20directory%20specified.%20Once%20the%20sync%20has%20finished%2C%20thats%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26gt%3B%201.%26nbsp%3B%3CSPAN%3EIf%20the%20sync%20is%20automatically%20done%20in%20the%20background%20when%20I%20edit%20files%20in%20the%20local%20storage%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20your%20existing%20command%2C%20no%20-%20there%20is%20no%20automatic%20sync%20occurring.%20However%2C%20if%20you%20switch%20'%3CSPAN%3E--synchronize'%20for%20'--monitor'%20this%20will%20continually%20sync%20until%20you%20exit%20the%20application%20-%20ie%20-%20sync%20automatically.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%26gt%3B%202.%26nbsp%3B%3C%2FSPAN%3EIf%20I%20have%20to%20create%20and%20customize%20the%20config%20file%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGenerally%20you%20do%20not%20need%20to%20do%20this%20unless%20you%20want%20to%20change%20some%20of%20the%20default%20options.%20Best%20read%20the%20help%20%2F%20man%20page%20for%20assistance%20on%20the%20configuration%20options.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26gt%3B%203.%26nbsp%3B%3CSPAN%3EIf%20I%20also%20need%20to%20create%20the%20sync_list%20file%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGenerally%20no%20-%20you%20do%20not%20need%20to%20create%20this%20file%2C%20unless%20you%20want%20to%20be%20super%20specific%20about%20what%20needs%20to%20be%20synced%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%26gt%3B%204.%20If%20I%20need%20to%20run%20onedrive%20as%20a%20system%20service%20to%20get%20automatic%20sync%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThat%20is%20generally%20the%20best%20way%20to%20configure%20automatic%20and%20constant%20sync%20in%20the%20background%20to%20occur.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFeel%20free%20to%20create%20questions%20on%20GitHub%20(%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fabraunegg%2Fonedrive%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fabraunegg%2Fonedrive%2F%3C%2FA%3E)%20as%20this%20is%20where%20most%20questions%20%26amp%3B%20a%20wealth%20of%20knowledge%20in%20closed%20cases%20sit.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1779140%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1779140%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you're%20looking%20for%20something%20a%20bit%20more%20polished%20and%20powerful%2C%20check%20out%20%3CA%20href%3D%22https%3A%2F%2Fwww.expandrive.com%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EExpanDrive%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20has%20deb%2Frpm%2FAppImage%20packages%20and%20runs%20on%20nearly%20all%20linux%20distros.%20There%20is%20a%20desktop%20edition%20as%20well%20as%20a%20server%20edition%20that%20runs%20headless.%20Mounting%20specific%20sharepoint%20sites%2C%20remote%20paths%2C%20etc%20are%20all%20supported%20as%20well%20as%20offline%20mode%20and%20async%20writes.%20Also%20built%20to%20withstand%20reboots%2C%20transient%20networks%2C%20etc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1934957%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1934957%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F515817%22%20target%3D%22_blank%22%3E%40muratkazanova%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20using%20InSync%20(paid)%20and%20no%20problems%20at%20all%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.insynchq.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.insynchq.com%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I would like to use OneDrive on Ubuntu, May be working with all or some folders. Since there is no office OneDrive client in Linux, I've searched online and found "rclone" but not sure how secure it is or is there any other alternative out there?

7 Replies
Highlighted
AFAIK, Microsoft has not shared any plans to support Linux in regards of ODFB. However, it seems there is an open source project about OneDrive Consumer support in Linux: https://askubuntu.com/questions/804301/how-to-sync-onedrive-business-office-365-on-linux
Highlighted
Thank you, I’ll check it.
Highlighted

@muratkazanova 

I am the maintainer of the free OneDrive Client for Linux, which supports OneDrive Personal, OneDrive for Business, OneDrive for Office365 and Sharepoint, and fully supports Azure National Cloud Deployments for those that require it. It fully supports shared folders - both OneDrive Personal and OneDrive Business Shared Folders.

 

For further information & details:

This is an actively maintained client which was originally forked from the 'skilion' client (which unfortunately most of the Internet still references). The 'skilion' client was abandoned in 2018.

 

Highlighted

Hi @abraunegg!

 

I've stumbled on this post this morning as I'm trying to "mirror" my Win10 laptop to a Linux machine (using Windowsfx disto, to save all my bad habits :lol:).

I've installed your software and managed successfully to sync from OneDrive to the Linux laptop (using onedrive --synchronize --single-directory command) but I'm now wondering:

  1. if the sync is automatically done in the background when I edit files in the local storage,
  2. if I have to create and customize the config file,
  3. if I also need to create the sync_list file,
  4. if I need to run onedrive as a system service to get automatic sync.

Sorry for the dummy questions, but I'm a bit new to Linux and all those things still look a bit of "magical dust" to me!

 

Thanks in advance for your help!

Highlighted

@jlgarnier 

Glad you found the tool useful :)

 

In regards to your questions:

onedrive --synchronize --single-directory

 

What this does is perform a single sync, of the single directory specified. Once the sync has finished, thats it.

 

> 1. If the sync is automatically done in the background when I edit files in the local storage

 

With your existing command, no - there is no automatic sync occurring. However, if you switch '--synchronize' for '--monitor' this will continually sync until you exit the application - ie - sync automatically.

 

> 2. If I have to create and customize the config file

 

Generally you do not need to do this unless you want to change some of the default options. Best read the help / man page for assistance on the configuration options.

 

> 3. If I also need to create the sync_list file

 

Generally no - you do not need to create this file, unless you want to be super specific about what needs to be synced

 

> 4. If I need to run onedrive as a system service to get automatic sync

 

That is generally the best way to configure automatic and constant sync in the background to occur.

 

Feel free to create questions on GitHub (https://github.com/abraunegg/onedrive/) as this is where most questions & a wealth of knowledge in closed cases sit.

Highlighted

If you're looking for something a bit more polished and powerful, check out ExpanDrive

 

It has deb/rpm/AppImage packages and runs on nearly all linux distros. There is a desktop edition as well as a server edition that runs headless. Mounting specific sharepoint sites, remote paths, etc are all supported as well as offline mode and async writes. Also built to withstand reboots, transient networks, etc.

Highlighted

@muratkazanova 

 

I have been using InSync (paid) and no problems at all

https://www.insynchq.com/