What about the application config files inside jails?

Ahmed Badr

Dabbler
Joined
Sep 3, 2015
Messages
13
Hi,

I'm installing MariaDB, nginx and phpMySQL in a jail to serve a few applications on my network. As the best practice for using jails suggests, I mounted a FreeNAS dataset inside the jail to store the database (/var/db/mysql). Now what about the configuration files (for example: /usr/local/etc/my.conf) ? What's the best practice to store single config files from all over the installation to the FreeNAS dataset?

Thank you,
A.B.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Config files are generally something that doesn't change once set up so a manual back up of them would seem sufficient. If changes are made, make a new backup.

I've found it easier to make a periodic backup of the database using mysqldump and have that backup stored on a separate database. You can set this up to run via cron or a task in the FreeNAS GUI and a simple backp script. Restoring the database from a catastrophic loss is pretty simple as well.
 
Top