vdirsyncer icon indicating copy to clipboard operation
vdirsyncer copied to clipboard

Collection cache stores expanded filestorage path

Open tbrk opened this issue 1 year ago • 4 comments

Thank you for such a useful and well thought out tool.

I use unison to synchronize a laptop running macOS (HOME=/Users/me) with a desktop running Linux (HOME=/home/me) and I want to be able to run vdirsyncer on either machine against the same set of files. In .vdirsyncer/config, I use ~ to abstract over the difference in the HOME directories, but unfortunately vdirsyncer discover expands ~ before caching the filestorage path. Would it please be possible to cache the unexpanded path and to expand in every vdirsyncer sync?

tbrk avatar May 13 '23 14:05 tbrk

This should be doable. You're not running vdirsyncer on both devices, are you?

WhyNotHugo avatar May 13 '23 20:05 WhyNotHugo

If you run it on both devices, and unison is running too, this might result in unison copying vdirsyncer's state file and leaving things in an inconsistent state.

WhyNotHugo avatar May 13 '23 20:05 WhyNotHugo

My use case is as follows:

  1. Run vdirsyncer on the laptop while not at work.
  2. Run unison in the morning when I arrive at work.
  3. Run vdirsyncer on the desktop at work.
  4. Run unison in the evening before leaving work.

The idea is thus to run vdirsyncer on both devices, but never at the same time. Should this work?

tbrk avatar May 14 '23 10:05 tbrk

Yeah, as long as vdirsyncer and unison never run at the same time you should be safe.

WhyNotHugo avatar May 25 '23 15:05 WhyNotHugo