Forum Discussion
OneDrive on Linux
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.
Can this be daemonized, like for example with PM2 process manager which can in turn be made to run on startup?