Backing Up Jail Configuration

NASbox

Guru
Joined
May 8, 2012
Messages
650
I am just beginning to look at using jails, but the (likely?) possibility of a FreeNAS update screwing up my jails scares me. Is there a way (command line OK - maybe even preferred) to backup a jail setup so it can be quickly restored without having to document and reproduce all the steps on the GUI. If the data is outide the jail it should make the jail pretty much disposable - or am I missing something?
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
Jails should be treated as volatile, most applications have a backup strategy. But if you really want to bother, look at iocage export
 

NASbox

Guru
Joined
May 8, 2012
Messages
650
Jails should be treated as volatile, most applications have a backup strategy. But if you really want to bother, look at iocage export

Thanks @garm I know there isn't tons of settings, but there are a number of settings that need to be entered to recreate the jail/mountpoints etc. It would be nice not to have to remember it.... just code into a script... if it's necessary to recreate the jail... just run the script. As for the contents of the jail, that's more or less standard unix backup -- shouldn't be too much of a problem.

Comments/suggestions.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Comments/suggestions
If you really want to get into that, @ornias wrote a nice tool called jailman that simplifies the rapid recreation of jails...

 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
but the (likely?) possibility of a FreeNAS update screwing up my jails scares me.
Jails aren't touched when you update FreeNAS.
 
Top