trepctl backup [-backup agent] [-storage agent] [-limit timeout]And here's how to restore. If you leave off the options, we find the latest backup in your default storage and load that.
trepctl restore [-uri backup_uri] [-limit timeout]That's the syntax. Now here's what happens behind the scenes. First Tungsten Replicator has a new BackupAgent plug-in that implements backup procedures. We have a backup agent for each the following types of backups for MySQL:
- Mysqldump - Probably least useful but easy to set up.
- LVM snapshot to tar.gz - Scalable with miminal database down time. Features are similar to Lenz Grimmer's excellent mylvmbackup script.
- Script dump - Integrate your own script for backup and restore. The script has to follow some very simple conventions, for which there is an example. You can integrate practically any backup/restore package this way.
Meanwhile, mysqldump is far and away my least favorite mechanism, not least of all because of this unusually heinous bug, which completely breaks the
mysqldump --all-databases
command. It's still not fixed as of at least MySQL 5.1.34. (How on earth did this one get in and why didn't it get corrected instantly?)Second, there is a new StorageAgent plug-in to handle storing and retrieving backup files. There is one of these for each type of storage. Currently the choice is limited to shared disk but I expect we'll have an Amazon S3 storage plug-in in the near feature. That's just too useful to pass up for very long...Among other things we ourselves run all our company services on Amazon and I would like to use it for our own backups.
If you want to use the new backup capability you can either build Tungsten Replicator yourself using the instructions on our getting started page or wait until the next binary build comes out in a couple of weeks. Backup and restore are documented here in the Tungsten documentation.
We went through a lot of effort to make the backup and restore processes as simple as possible. It's down to one keyword for each operation, so I don't think it's going to get much simpler. Please try it out and provide your feedback. I love bug reports and want to hear what you think.
4 comments:
I used to love LVm backups as well. That's until I realized what a horrible performance dog the LVM snapshotter is. And the way lack of write barrier support went unnoticed for years doesn't really inspire my confidence, either. That said, I've never had data loss through it - just awful performance.
Hi Osma!
I believe Peter Zaitsev posted some interesting notes on LVM performance that made exactly this point. It's definitely not for write-intensive apps.
Have you tried ZFS? I have not seen any performance numbers for snapshots. I'll probably implement ZFS backup as soon as somebody asks for it on Solaris.
Robert
I cant seen to find out any resources on how you use xtrabackup with Tungsten as opposed to mysqldump. How do you change the defaults to get it working. Thanks
@Stephen,
Check out the docs on the Continuent website at https://docs.continuent.com/wiki/display/TEDOC/Tungsten+Documentation+Home. If you still need help post to the Tungsten Replicator discussion list at https://groups.google.com/forum/#!forum/tungsten-replicator-discuss.
Post a Comment