Forum Discussion
OneDrive on Linux
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.
- jlgarnierOct 14, 2020Copper Contributor
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 ).
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:
- if the sync is automatically done in the background when I edit files in the local storage,
- if I have to create and customize the config file,
- if I also need to create the sync_list file,
- 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!
- abrauneggOct 14, 2020Iron Contributor
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.
- vedran-brnjeticApr 06, 2021Copper Contributor> '--monitor' this will continually sync until you exit the application - ie - sync automatically.
Can this be daemonized, like for example with PM2 process manager which can in turn be made to run on startup?
- vetterworldFeb 23, 2023Copper Contributor
Hey, could you help out a dumb guy like me? How do I change the location that it used on my computer? I need to switch it a different drive. It's mint it's mint 21.1 cinnamon, in case that matters.
- abrauneggFeb 23, 2023Iron Contributor
To answer questions like this it is better that you ask your question on GitHub - https://github.com/abraunegg/onedrive under 'Discussions'
- Julian_GCJan 16, 2024Copper ContributorThis is a very neat app, it works very good for me. I have been using it regularly through the GUI provided by another developer: https://github.com/bpozdena/OneDriveGUI
(you need to install both).
Thanks a lot for sharing your work!