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:
- https://abraunegg.github.io
- https://github.com/abraunegg/onedrive/
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.
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?