<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><br><div>On 14 Nov 2017, at 20:37, Iain R. Learmonth <<a href="mailto:irl@torproject.org">irl@torproject.org</a>> wrote:<br><br></div><blockquote type="cite"><div><span>Hi,</span><br><span></span><br><span>On 14/11/17 05:03, Roman Mamedov wrote:</span><br><blockquote type="cite"><span>Dear Tor project: this is very bad style to keep that in /var/lib, content</span><br></blockquote><blockquote type="cite"><span>with properties like this must go into /var/cache/ [1], where it would be</span><br></blockquote><blockquote type="cite"><span>automatically excluded from backups by default policies in most backup systems.</span><br></blockquote><span></span><br><span>It does seem that all paths used by tor are relative to DataDirectory,</span><br><span>which has usually been /var/lib/tor. Perhaps a new configuration option</span><br><span>for CacheDirectory, and moving caches to that directory, would be</span><br><span>useful. It would be up to packagers to actually use that option though,</span><br><span>a default of using DataDirectory as CacheDirectory would not be entirely</span><br><span>unreasonable for cases where tor is embedded in other software.</span><br><span></span><br><span>This would seem worthy of a trac ticket if someone could write one up.</span><br></div></blockquote><div><br></div><div>Done:</div><div><a href="https://trac.torproject.org/projects/tor/ticket/24272#ticket">https://trac.torproject.org/projects/tor/ticket/24272#ticket</a></div><br><div>I'm surprised this hasn't come up before: the existing consensus and</div><div>directory documents are 10MB+, and change every hour.</div><div><br></div><div>I guess disks are big nowadays…</div></div><div><br></div><div>Also, your relay will survive if you set DataDirectory to /var/cache.</div><div>But it will lose its keys every time /var/cache is cleared, which some</div><div>distributions do on restart. (This means it will take some time to</div><div>attract bandwidth and flags after a restart.)</div><div><br></div><div>T</div></body></html>