[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] Backing up a jail

On Aug 8, 2013, at 5:23 PM, Harold Paulson wrote:

> Dan, 
>> I'm considering backing up a jail created with ezjail 3.3
>> My goal: do not backup the basejail, but backup everything else.
>> All backups will be performed from on the host system, not from within the jail.
>> Given a jail at /usr/jails/example.org, I plan to exclude the following directories:
> Since you are using a ZFS file system for each of your jails, simply snapshot those and backup from the snap.  You won't have to worry about the null-mounted basejail and you can be sure that files will be in a consistent state.

I do like that idea.  Nothing wrong with keeping the snapshot around for a bit too.  I could script that snapshot as part of the 'before backup' and 'after backup' scripting that comes with Bacula.

Do you have anything like that already?

Dan Langille - http://langille.org