TurnKey Linux Virtual Appliance Library

tklbam Doesn't Backup New Files

tklbam only backs up files for a base installation. If you install new packages/configurations they may not get backed up. For example I added odbc to an image and when I did a restore odbc wasn't there.

Is there a way to automaticlly have tklbam figure out that there are new files that need to be backed up after an installation.

At the very least, people need to know about this so they don't learn about the hard way.

Alon Swartz's picture

TKLBAM will backup the delta changes...

TKLBAM will backup the delta changes made to an appliance, whether its adding new packages, new users, files, databases, etc.

But, if you installed software/files in a way that is not compatible with the  Debian Policy / FHS, then TKLBAM won't include them in the backup. You could override this, but its not recommended.

Another Example

It turns out the ODBC stuff was actually OK, but here's one particular file that wasn't backup:

/etc/hostname

Can you explain that?

Jeremy's picture

I'm no sure but creating an overide is easy

As Alon mentioned above, creating an overide is easy. And really backups should never be relied on to 'just work', they should be thoroughly and regularly tested to ensure that they will work as desired if the need for them arrives.

Any Docs On dirindex.conf Rational

It turns out that /etc/hostname was explcitly excluded from dirindex.conf. And I see a lot of other files that are excluded as well. Is there any design docs that explains why certainly things are excluded?

I'd just like to understand more. For example, I've put /etc/hostname back in the backup. Is there some reason that's a bad idea?

Jeremy's picture

Sorry no real documentation

But I suspect that it's to cover migration. If you use TKLBAM to create a uniform starting place for a number of appliances you won't want them to all to have the same hostname...

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)