<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 8:16 PM, Lyn Headley <span dir="ltr"><<a href="mailto:lheadley@kcptech.com" target="_blank">lheadley@kcptech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":13s" class="a3s" style="overflow:hidden">I am building an app which will need to store some data in files. I am<br>
wondering if others use the priv directory for this, or whether they<br>
use another place, perhaps somewhere outside of the application tree<br>
entirely.</div></blockquote></div><br>From experience: keep the static artifact away from the dynamic data whenever you can. It makes software upgrades much simpler since you can install another artifact next to the one you already have, move a symbolic link, and run it against the data, kept separate. It simplifies partitioning, it simplifies backup, and you can lock down writing to the tree for the user running your release.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So my usual solution is: use priv for read-only data the given application is using, and use the application configuration environment to pick up the storage area for dynamic data.<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">J.</div>
</div></div>