Shell Script To Back Up All MySQL Databases, Each Table In An Individual File And Upload To Remote FTP
This script will create a backup of each table in every database (one file per table), compress it and upload it to a remote ftp.
Shell Script To Back Up All MySQL Databases, Each Table In An Individual File And Upload To Remote FTP
This script will create a backup of each table in every database (one file per table), compress it and upload it to a remote ftp.
I am happy to announce that mylvmbackup version 0.10 has been released.
You can download the updated package from the project home page or via the openSUSE Build Service.
This version fixes some bugs and includes new functionality:
I am happy to announce that mylvmbackup version 0.10 has been released.
You can download the updated package from the project home page or via the openSUSE Build Service.
This version fixes some bugs and includes new functionality:
Hello and greetings from DrupalCon 2008 in Szeged, Hungary!
We (Thierry Manfé, Scott Mattoon and myself) are having a great time manning our booth and talking about Drupal, MySQL and Open Source@Sun with the nice crowd of Drupal Users and Developers here. Sun is a gold sponsor of the event and we're giving a number of sessions as well.
Today I gave my first presentation about MySQL Backup and Security - Best practices - unfortunately I ran a tad bit out of time at the end... The slides have already been attached to the session page, so you can read up on the last few things I was going to talk about. Feel free to contact me, if you have further questions!
Tomorrow I'll be talking about …
[Read more]
The cool features coming with MySQL 5.1 and 6.0 are the event
scheduler and so called online backup.
Both of them implement something that you can do outside the
database server. The event scheduler frees the DBA from the operating
system dependency and the database backup and restore makes mysqldump
redundant.
So far, the good news. What's wrong with this picture?
A look at the manual tells you all. You can backup and
restore a database with an explicit SQL statement, but you can't
use it in a prepared statement or in an event.
What?
WHAAAAT?
What do I use the event scheduler for, then? Ask any DBA about
the first thing …
I am happy to announce that a new version (0.9) of mylvmbackup has been released. This is the first release since the source code has been moved from Subversion to Bazaar and is now hosted on Launchpad.net. I would like to thank Robin H. Johnson and Patrick Hahn for providing the patches that contributed to this new release!
mylvmbackup is a tool for quickly creating backups of MySQL server's data files. To perform a backup, mylvmbackup obtains a read lock on all tables and flushes all server caches to disk, makes an LVM snapshot of the volume containing the MySQL data directory, and unlocks the tables again. The snapshot process takes only a small amount of time. When it is done, the server can continue normal operations, while the actual file backup proceeds.
From the …
[Read more]|
I discussed my findings with Guilhem Bichot, one of the online backup creators, and he remarks: You could also try before starting mysqld. It should not backup index (and rebuild them at repair time). Should make a smaller backup and a longer restore. I am not really looking for a longer restore, but let's give it a try. I restarted the database with the suggested option, and here is what I got: |
backup database employees to 'emp2.bkp';
+-----------+
| backup_id | …[Read more]
Remember the first test of online backup? I tested the new
feature, which was performing quite well, compared to mysqldump.
OK. Get ready for a surprise.
I tested the native MyISAM
driver from the mysql-6.0-backup tree, and I compared the results
with the normal backup.
| version | backup time | restore time |
|---|---|---|
| standard | 25.58 | 79.11 |
| MyISAM driver | 4.15 | … |
I've just been informed that a PDF of my slides as well as a recording of yesterday's webinar about MySQL Backup and Security (in German) is already available for replay/review. You can access the files from our on demand webinars page (free registration required). Enjoy!
If you are new to MySQL and would like to get an overview about some best practices for securing a MySQL server and some commonly used backup techniques, consider attending this webinar (in german), held by yours truly. It will take place this Tuesday (2008-06-17) at 15:00 CEST - participation is free of charge! This is my first attempt to perform a webinar, I usually give talks in front of a live audience... Let's see how it goes.