Is there a way to change where the cache
content is located?
I would like to have my cache folder in my main
syncthing folder so that I can share it between
all my machine, so that offpunk sync my content once
and then anything on my lan can have access to it.
--
gef@sdf.orghttps://gef.ink
I had exactly this use case, and all you need is some Unix magic:
- move your existing content into /path/to/syncthing
- create symbolic links from the existing folders to the one you just
moved to
Syncthing sees actual files and syncs them, offpunk follows symlinks and
works with them
--
Matthieu Rakotojaona
On 23/01/25 05:31, gef - gef at sdf.org wrote:
>Is there a way to change where the cache>content is located?>>I would like to have my cache folder in my main>syncthing folder so that I can share it between>all my machine, so that offpunk sync my content once>and then anything on my lan can have access to it.>>-->gef@sdf.org>https://gef.ink
I added the "set cache" command as an experiment to allows using a
custom cache folder.
This implementations as several problems.
1. As _CACHE_PATH was a global constant, I transformed it to a global
variable. I feel it is not good.
2. There’s no way to revert to the default cache (a restart is needed
for that). So consider this as a developer experiment.
--
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html