Xan wrote:
CybrMatt wrote:
The most trivial thing to do is simply mysqldump the databases somewhere on disk and include that output in your tar/rsync backup job of the filesystem.
That's definitely the simplest, and if you can't stand the downtime, you can replicate to a remote machine over SSH (or even a second instance on the same machine) and then mysqldump off of that for your snapshot.
You don't always need replication in order to avoid downtime. If you have InnoDB tables, "mysqldump --single-transaction" will give you a perfectly consistent snapshot of your live DB,
without hanging inserts or updates in the meantime. But only if your tables are InnoDB.