vdirsyncer
vdirsyncer copied to clipboard
Suggestion: add -y flag
I'm trying to automate the use of vdirsyncer for backing up from sogo (mailcow). For automation it would be cool if it didn't ask if it should create a folder if i just pass a flag like -y and instead just do it automatically.
Sidenote: How can I use it as a library in my own python stuff? The code doesn't make this clear for me sadly.
You can create empty directories manually as a workaround for now. A flag to indicate "yes, create all" would be nice though.
How can I use it as a library in my own python stuff? The code doesn't make this clear for me sadly.
Not really, but it's planned, I'll have more on this soon.
You can evaluate https://github.com/pimutils/vdirsyncer/pull/869.
Second that request. Adding --yes --batch or something similar to silence any yes/no question would greatly extend the use case of this script.
For now you can use yes | vdirsyncer discover and the like.