You are here
Jeremiah - Mon, 2011/02/21 - 18:21
I know TKLBAM is best used with S3 storage but for now I'm using an scp:// address appended to the tklbam-backup command to target an in-house backup server. The only thing is I don't think other commands work well with this such as tklbam-list, tklbam-status. Is there a way for me to get a list of my backups?
Forum:
Tags:
tklbam list and status commands query the Hub API
For example, you wouldn't expect to be able to restore a backup that was saved to file:///root/backup on one machine from another.
Right, but I would expect to
Right, but I would expect to be able to restore to a different machine a backup that was saved to scp://backup.server.ip/backup.
I understand the limitations though given that I'm not using S3. I just thought there might be a way to add the --address to tklbam-list. I feel like I'm reaching in the dark when I do a restore. I can't see all the backups so I just grab the latest. However, if I understand the syntax correctly it seems I can specify a time period when I perform a tklbam-restore. Is that correct? That would certainly be helpful even though I would prefer to explicitly select a backup label or something.
Disagree!
Disagree with your disagreement... :)
Actually I don't completely disagree with you, but it made a nice heading! :)
I get what you are saying and in essence i agree that it would be nice. But I also see Liraz's point - wherre are you going to centrally store the list/status data? And where/how else can you store it in such a way that it will work where ever you are? As such I certainly couldn't agree with you when say that "it's broken" - it just doesn't currently support your usage scenario in the way that you'd like!
As with any other open source software you are always free to tinker with the code (or pay someone else to) and adjust it to suit your desires. The source is hosted on GitHub (although perhaps that's a little out of date, I don't know...) or the deb can be found (and downloaded and pulled apart) in (from) the TKL repo: http://archive.turnkeylinux.org/debian/pool/wheezy/main/t/tklbam/ (Obviously that's the latest release for Wheezy based v13RC)
Yes, you can backup without S3.
Yes, you can backup without S3. In fact, you can pretty much backup to any target that duplicity can backup to since it is the underlying open source backup utility used by TKLBAM. But you still have to go to hub.turnkeylinux.org and create an account to use TKLBAM. Then follow the links for TurnKey Backup and Migration which will ask you too create an Amazon account with a credit card. You won't get charged for anything unless you actually use Amazon services like EC2 or S3 so don't worry about the credit card part.
This all has to be done because TKLBAM needs to be initialized with the API key that you get after creating the Amazon account even if you don't use S3. You can find your API key by browsing to https://hub.turnkeylinux.org/profile/ . TKLBAM also gets an up to date TKLBAM profile for your TurnKey Appliance from TKLHUB.
The first command to run on your TurnKey appliance will be 'tklbam-init [API KEY]'.
Then you can follow the instructions for local backup.
Your scp target is correct
Your scp target is correct except for the // before mnt. It needs to be a single /
I tried Don's suggestion to replace that // with :/ and tklbam-backup failed with an error so don't use that. The : should only be put after the IP address if you are specifying a different port to connect to.
Thanks for sorting that for
Thanks for sorting that for him, I've been using the colon for years with scp, straight from the man page.
Wonder if it's a Duplicity thing?
I agree. I thought I had used
I agree. I thought I had used a : before too. It turns out Duplicity does have a specific scp URL Format where the : is only used before specifying a port.
So I see
That would be a good link to post in an easily found spot on this website.
Maybe here somewhere: http://www.turnkeylinux.org/docs/tklbam/faq/usage
I agree but even though the
I agree but even though the Documentation homepage says "The following documentation is a wiki maintained by the TurnKey community. You need to be logged in to edit." I don't actually see any "Edit" button so I can't add that link. Feel free to add it if you can.
Hey, I'm new here.....
If you don't have the "Keys to the Kingdom" I certainly don't.
Perhaps Liraz or Alon could add it if they feel it's appropriate.
Used to be editable, but not since the website refresh
I'm not sure whether that was intentional or not. There had been some discussion about making the onsite docs (http://www.turnkeylinux.org/docs) the "official docs", and thus only editable by a select few (I'd assume currently it's only devs). And the "dev wiki" (http://wiki.turnkeylinux.org/) was to be for 'draft' & community provided docs, hints, tips and from time to time added to the official docs.
But I'm not sure whether that was what happened (in which case that doc page about it being a community wiki needs to go) or whether it was an unintended consequence of something Liraz did when he was tidying up the site.
While I've not used
Corrected, thanks to Jeremy.
While I've not used tklbam-backup with scp the basic remote location format for scp is:
your_username@remotehost/some/remote/directory
You have a double slash (//) in place of the single slash (/), ths may be confusing things.
Can not make SCP work w/ TKLBAM based on instructions.
I might find some time
I might be able to take a look at this in a day or two.
I'd REALLY like this ability myself. I've got 20 terabytes of NAS storage sitting about 2 feet from my VMware ESXi instances... I see no reason to backup date to Amazon.
NFS? (Failure on that too)
Thanks Eric, I am glad to know someone else shares my logic.
In an attempt to overcome the issue with 'tklbam backup --address......", I figured I would try to mount an NFS share to the TKL appliance that I wish to back up, hoping that TKLBAM would see it as a file system and I could use 'tklbam backup file://....." (since I know file backups work.)
So I added nfs-server-kernel and got NFS setup on my server, and nfs-commons is added on the file server appliance.
Denied!
I can't get a remote volume to mont on the file server appliance either using NFS; after wasting a considerable amount of MORE time, I can't get past the client-side error: mount.nfs: No such device
!! RANT: Does this really have to this hard???!!! How does anyone get anything done in the world when so much time is wasted just trying to make simple simple things work!!?
!! UPDATE: Trying to change f/w settings, but get errors on TKL appliance in Webmin.
!! UPDATE: Trying to install NFS server on TKL file appliance and get the following:
root@svr-tkl-audit ~# apt-get install nfs-kernel-server
This is how I NFS mount
I setup my NFS server to allow all hosts on my local network to be able to mount exports, and then on the TKL client:
IMHO, the hard part is setting up the authorization on the NFS server
Did that... then some...
So... here's my opinion
I would never say that TKL is perfect nor would I say that it can do everything I want (that blog post you mentioned wanting criticism was a reaction to a post that I made with some frustrations I was having).
But, I would also never say it's a completely broken system. I can't backup my system with TKLBAM to any place but S3, but I can use good old fashioned rsync to back it up wherever i want to. I do use TKLBAM with S3 for 2 of my systems, but not the other 5. I have been using Linux for a LONG while so find doing things second nature; setting up my nfs clients take about 5 minutes just becuase I have done it any times. From my experience, backing up a Windows system is more problematic than TKL.
Don't take my comments the wrong way, I feel your frustation. There are some things that I think TKL should do that it can't that make me frustrated as well, but overall... the flexibility it gives me is worth the few frustrations.
My 2c...
I'm with Eric (although sometimes I get a little defensive about TKL because I have invested so much in it being successful) - It's not perfect and there are somethings that it doesn't do that I wish it would. There are other things that it does, but I think it could do better. But overall I find it generally works well for me.
I have spent a number of years administering a Windows network and my personal experience has been that doing things with Windows is often much more convaluted and painful (and harder to repeat your steps when you are successful). And finding help with issues beyond me can sometimes be damn near impossible. Google seems to be able to find plenty of other people having the same issues as me but more often than not there seem to be few if any answers to the more complex problems I have had. On a few occasions starting again from scratch (ie clean install) has been the only solution that I could get results from.
OTOH I have come across issues with Linux too, but 99% of the time I can find answers to my issues with Google.
Back to your problems at hand though...:
As you may be aware, although TKLBAM is a custom TKL package, it is basically a front end for Duplicity and AFAIK TKLBAM utilises the stock standard Debian Squeeze (aka Debian 6 - the basis of v12.x TKL appliances) version of Duplicity - straight from the Debian repos. I could be wrong, but I suspect that the NFS issues you are having are more to do with Debian generally rather than Turnkey specifically. Google may be able to assist you and point you in the right direction if you keep in mind that TKL is basically Debian Squeeze under the hood.
Also I have successfully used TKLBAM to backup to the local filesystem and as Eric suggests, rsyncing between servers is relatively painless (in my experience anyway...). From my previous reading Duplicity happily uses rsync directly (although I've never tested it).
scp/nfs should work fine
I have a bit of experience with duplicity (which is technology underneath TKLBAM) and I've succesfully used scp/ssh targets quite a bit.. so it should be doable. I can't look at it though, until tomorrow or Sunday.
I've also been able to mount NFS shares to my TKL images as well, if you're getting authorization errors then the NFS server is likely not configured to allow access to that host.
Add new comment