> -----Original Message----- > From: [email protected] On Behalf Of Steffen Hoffmann > Sent: 03 January 2014 21:48 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 03.01.2014 09:42, Cooke, Mark wrote: > > Folks, > > > > I have a plugin that uses an SQLite dB and I am wondering where is > > the correct place to store the data file? Currently it is in the > > root of the attachments folder but perhaps there is somewhere > > better? > > > > Or do I just make it configurable via trac.ini? > > The canonical attachments folder content will be moved to 'files' in > Trac 1.0, so I would adapt this too.
So I could create a plugin data folder: <env> / files / <plugin> ? > I don't know, why you're storing data (exclusively?) for Trac, but > outside the Trac db, what would be the natural place to me. In this case I am realy using Trac as a convenient web-app host, I already have trac / svn and authentication setup for software projects and needed to serve a simple app to some authorised local users. The data is really completely independent of Trac and using SQLite makes the data more accesible while testing etc. We already backup the trac env folders. > > P.S. I am using Trac 0.12.5 on windoze (if that makes any > > difference), served via apache httpd & mod_wsgi, using a PostgreSQL > > 9.x backend. > > So I would alter the plugin to use this Trac db backend too, > and you can forget about your initial problem. Counting the > environment as file storage no. 1 and the Trac db as no. 2 this > should be enough. Each storage beyond could become just painful > (think safe db copy etc.). Valid points and thanks for the advice. Given time constraints and the fact that it is already working, I will ignore you this time but know better next time! ~ mark c > Sincerely, > > Steffen Hoffmann -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
