-
-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sync mode(default, download-only , upload-only, local-first, no-remote-delete) an option in config #356
Comments
Hi I think in principle it is a good idea what you propose, only that the format is not optimal. How would you specify an upload-only with no-remote-delete? So if we go in this direction, I suggest that every command line option can have a respective setting in the config file, and the command line takes priority over the config file (as usual). @abraunegg WDYT? Should I look into this? |
@CaulyKan @norbusan Potentially what would be better is:
This then could accept any number of valid parameters, with then any actual CLI entries taking further priority.
We could also go in this direction where the command line option makes sense for a 'config' file option. Switches like |
@abraunegg agreed that some switches don't make sense, indeed. Concerning the So I would tend to have single options instead of one If we agree on one method, I can look at the implemetation |
As far as I can tell, there are several ways to modify entrypoint.sh:
The third way have other problem: when the container starts the sync starts immediately. If I want to change to upload-only I have to disable the config to make the sync fail. |
I agree with @CaulyKan that adjustment of the docker entry points is not what we want to be necessary. In an ideal world it should be as described in the |
I've submitted a pr on |
By the way, is there any one working on gui? I think a self-contained web ui should work best with docker. If nobody is working on it, maybe I can give a try. |
@CaulyKan gui discussion is not really related here, but no, nobody works on it AFAIS. I have looked into writing a applet in D, but GUI toolkits for D are rare and a bit a pain. Furthermore, the current onedrive client is not set up in a way that it could communicate with a frontend (no multi-threading, information handling ...). So writing a GUI - even a self-contained web ui which needs support from the backend - is future work which we haven't initiated by now. |
If it is simpler & easier for each option to have it's own 'config' option, then no issue there. |
This comment has been minimized.
This comment has been minimized.
Merge into master, I think this can be closed. |
PR #389 merged |
Re-opening issue as PR #389 broke client configuration option parsing |
eh...document not updated? not sure how to start with the new version, where shall I put sync mode in config? |
@CaulyKan
Any feedback you have is greatly appreciated |
Closing as PR #449 merged |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
* Add an additional check for 409 (Conflict) being returned when creating directories even when the directory is only attempted to be created when it cannot be found.
When using docker with onedrive, it's quite a difficult work to modify entrypoint.sh and change arguments of onedrive command. So it would be better to make use of config file to take full control of onedrive behavior, especially the sync mode.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Add a
sync_mode
option to config file, available values:and use them the same way they work in arguments.
The text was updated successfully, but these errors were encountered: