You are here
maec - Mon, 2016/05/30 - 18:20
I have multiple TKL Core appliances on Proxmox as containers. They are each modified (packages added; no lower level changes) and used as baselines for creating development servers. All of these containers were created by doing a restore from a backup of the original TKL Core appliance container. This results in the same Proxmox node name for each.
TKLBAM backups were enabled on Webmin for each of these.
Now the problem: On the Hub dashboard I have only one appliance, Backup ID 1, Profile "turnkey-core-14.1-jessie-amd64" and one set of backups. There is more than one backup per day, so I'm assuming all the appliances' backups are part of this one backup set.
How do I make the appliances distinct to tklbam so I get a separate backup for each?
Forum:
Each new server should create a new backup record
To check this I suggest that you manually run a full backup on one of the servers and see what happens in the Hub. A new record should appear (if it doesn't already). Note though that it will have the same name within the Hub but it should be a different BackupID.
Hi Jeremy,Here are the
Hi Jeremy,
Near the end of the log output on Webmin are lots of lines like these:
... oh, here's a thought: since BRAP-FULL was restored/created from a Proxmox backup of BRAP-Stack, it would have "inherited" the TKLBAM backup history (they are identical containers). If that's the case, maybe there's a way to reset it -- ?
/var/lib/tklbam/hbr has the backup id
I've changed it to a new ID number and it seems to be creating a distinct backup. If I find out otherwise I'll update.
Thanks for riding along....
Mark
Ah ok. That seems a bit weird to me though...
Regardless of what it "should" do it sounds like you've found a suitable workaround! :)
I think that's the problem:
I think that's the problem: These aren't "new servers creating a new Hub record". Looks like the reason for the duplicate Backup ID is because these are Proxmox container servers that are restored/duplicated/created as new container-based servers on Proxmox -- then backed up to the Hub. I'm guessing the smarts of the Hub's "restore to a new server" *installs* the server (running init scripts, setting a new Backup ID, etc) vs just creating an identical copy as I've done in Proxmox.
I've looked at man pages and forum posts but don't see what needs to be done to a "Proxmox container server copy" to turn it into a unique server -- turnkey-init? hub-init? I'm assuming there's more uniqueness on a TKL server than just the Backup ID (security settings, etc).
Re my original difficulties: One red-flag that I now realize is when running tklbam-init, on the Proxmox container duplicate server, it replied TKLBAM was already initialized -- since tklbam-init had already been run on the original server and this was a Proxmox duplicate server. As opposed to when doing a restore to a new server from the Hub there is no Backup ID until tklbam-init is run.
Ahh, that explains it!
What you explained is exactly what I would have suspected! If you launch a NEW server and restore a TKLBAM backup to it (like hte Hub does), it will automatically create a new backup ID! If you launch an old server (be it an existing server or a new server made from a clone/backup of an old server) then it is an old server, not a new one! :)
There isn't a way to turn an old server back into a new server. If you want a new server, why not just launch a new server? Then you can restore your TKLBAM backup to it and it will be similar to your other server (but the Hub will see it as a unique server and all the special secrets will be unique).
Perhaps you need to create a hook script?
Regardless though, it's a good idea to test your TKLBAM backups regularly to make sure that when you need it it will work as you expect it to.
Add new comment