~lioploum/offpunk-users

2 2

change the cache folder

Details
Message ID
<Y9FneJb5vT73QY27@SDF.ORG>
DKIM signature
missing
Download raw message
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
Details
Message ID
<1c7cc26e-4fef-456c-8a4b-a2aa1482dbc7@rako.space>
In-Reply-To
<Y9FneJb5vT73QY27@SDF.ORG> (view parent)
DKIM signature
missing
Download raw message
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
Details
Message ID
<167474337051.8.7310770326424358535.94763436@ploum.eu>
In-Reply-To
<Y9FneJb5vT73QY27@SDF.ORG> (view parent)
DKIM signature
missing
Download raw message
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
Reply to thread Export thread (mbox)