autovdirsyncer
autovdirsyncer is a wrapper to daemonise vdirsyncer
.
It monitor your vdir collections and runs vdirsyncer:
- After two seconds if a file is changed. ("active" runs)
- Every fifteen minutes if no file has changed. ("passive" runs)
Active runs will be postponed by two seconds if you keep editing files. This is
so that, if multiple events are happening at once (e.g.: you're copying a bunch
of files), synchronisation will happen only after you're done.
Feel free to join the IRC channel: #pimutils on irc.libera.chat.
Caveats
- Don't run
vdirsyncer
manually. It'll modify all your files, and
autovdirsyncer
will trigger another instance of vdirsyncer
.
- If you alter files continuously within two second intervals,
vdirsyncer
will not run. It'll run after the continuous editing happens. This should not
be an issue for usual / desktop usage.
- The location of collections is currently hardcoded to
.local/share/calendars
. This tool should likely ask vdirsyncer
to
enumerate its collections and use that as input.
Licence
autovdirsyncer is licensed under the ISC licence. See LICENCE for details.