You are here
Christian - Thu, 2015/08/20 - 13:52
Hi, I have seen that it is possible to use TKLBAM with any Debian-based installation. But what will be backed up once TKLBAM is initialized? Only the MySQL database and any files added/changed/deleted since that point in time? Or also all files that are not controlled by the package management, i.e. that have been added manually? I didn't fully understand the logic.
Thanks for any information.
Forum:
TBH I don't rememeber 100%
If you are installing on vanilla Debian then you need to create your own custom profile. All the existing TurnKey appliances have their own profile which tells TKLBAM which directories (and databases as relevant) to include and/or exclude...
My suggestion would be to install it; set yourself up a basic blank profile and have a play. The docs are pretty good; although obviously geared towards existing appliances so you'll need to read between the lines sometimes... Staret with tklbam-backup and test it out. You can use the "-s" swith to simulate and/or the "--dump=/path/to/dir" to dump your backup to a directory before you start actually uploading stuff!
Let us know how you go. If you have any issues I'll try to help you out. Perhaps if you end up documenting your process you could post it here!?
Thanks Jeremy for the quick
Thanks Jeremy for the quick answer. Ok, I did not know that it works with manually configured profiles - I thought that TKLBAM would somehow infer the directories from the package management metadata. Too bad.
What I want to do is to back up the content of a docker container based on a vanilla debian, with plugins added. So there are three states: 1) the vanilla debian, 2) the default initial state after the dockerfile has run and installed all dependencies, and 3) finally the current state of the application, with files and database content. Ideally, I can produce state 2 in a new docker container and then restore state 3 from a TKLBAM backup.
If I understand correctly, I need to create a profile for state 2, then.
Ok, for the record
Then it will tell you that profile "Debian 7" (yay!!!) has been downloaded and the a link to the Hub has been established.
Doing a dry run revealed that all additions to the base Debian are saved.
Great stuff. I'll do a test restore in a different container to see if it works.
Houston, there is a problem
I created a clone of the current container, installed tklbam there and tried a restore. this is what happened:
Hmmm
Maybe Alon or Liraz could
Maybe Alon or Liraz could have a look, since they wrote TKLBAM, they should know right away what might be the problem?
Did you check squid was running and/or can start? Logs, etc?
Ok. Where do I find the
Ok. Where do I find the logfiles? There is /var/log/tklbam-restore, but it contains the same error backtrace as was dumped to stdout. There is no special log file for squid. Where could I look?
Bugger...
But looking over your stacktrace again I just tried to launch squid-cache to get a feel for what might be going wrong.
Do you have plenty of free space? I wonder if that might be the issue? Although I'm only guessing really...
Regardless I'll email Alon & Liraz. TKLBAM is actually Liraz's baby so I'm not sure if Alon will know. Liraz will but he is in "dev mode" and is notoriously hard to get hold of... I'll let you know...
Any news?
Hi Jeremy, any news from Liraz?
Thank you Jeremy, much
Thank you Jeremy, much appreciated. TKLBAM would be a critical component of the backup strategy of a dockerized application which cannot be based on an TKL appliance (since there are no dockerized TKL-Appliances yet).
Alternative: TKL-Core as a Docker Image
Alternatively, if trying to add TKLBAM to an existing dockerized image doesn't work out, I might as well try to rewrite my Dockerfile to be based on the TKL-Core Docker image. Let's see whether Liraz finds time to look at the problem in the next couple of days.
Long detour to end up with the same problem
Ok, now I have replaced the original non-TKL debian install with a TKL based docker image, only to end up with the same problem that has something to do with squid. See the attached screenshot (I cannot copy & paste from the web-based terminal).
I hope that Liraz can have a look, because this getting to be a REAL problem.
Thank you!
I should have added an issue on the tracker sooner...!
I have also sent Liraz a message so hopefully he will get back to me/us real soon...
Docker-specific bug?
Thank you. Maybe it is a Docker-specific bug and has nothing to do with the distribution itself? The problem occurred in both cases in Docker containers. I have added this in the bugtracker.
Add new comment