-
- Expert
- Posts: 231
- Liked: 22 times
- Joined: Feb 26, 2019 12:08 pm
- Full Name: Gianluca Croci
- Contact:
Backup of a MariaDB Cluster
Hello,
We've a cluster of 3 MariaDB servers on CentOS 7.
We'd like to know what's the best way to backup the Database. The important thing is to have consistency.
At the moment we only backup the VMs, and MariaDB every hour saves the Logs in a Storage outside the cluster.
Potentially we can install the Linux Agent, or better as we do now but adding Pre and Post scripts?
Thank's in advance for the replies.
We've a cluster of 3 MariaDB servers on CentOS 7.
We'd like to know what's the best way to backup the Database. The important thing is to have consistency.
At the moment we only backup the VMs, and MariaDB every hour saves the Logs in a Storage outside the cluster.
Potentially we can install the Linux Agent, or better as we do now but adding Pre and Post scripts?
Thank's in advance for the replies.
-
- Product Manager
- Posts: 14835
- Liked: 3082 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: Backup of a MariaDB Cluster
Hello,
just to be sure about the setup: it's about a Galera Cluster?
And what kind of restore is needed? Do you want to restore the database only, or the entire Linux machine (meaning you would try to join one old server from backup into a cluster that is still running on the two other nodes)?
My assumption is, that dumping the database is the best way, but let's see
Best regards,
Hannes
just to be sure about the setup: it's about a Galera Cluster?
And what kind of restore is needed? Do you want to restore the database only, or the entire Linux machine (meaning you would try to join one old server from backup into a cluster that is still running on the two other nodes)?
My assumption is, that dumping the database is the best way, but let's see
Best regards,
Hannes
-
- Expert
- Posts: 231
- Liked: 22 times
- Joined: Feb 26, 2019 12:08 pm
- Full Name: Gianluca Croci
- Contact:
Re: Backup of a MariaDB Cluster
Hello Hannes,
yes, it's a Galera Cluster.
We'd like to do any kind of recovery possible with database servers.
Then recover one or more Databases, as well as recover the entire Server.
With "dumping the database" do you mean through "Pre" and "Post" Scripts or directly from Galera/MariaDB on a partition that we would then go to backup with Veeam?
Thank's a lot.
Kind regards
Gianluca
yes, it's a Galera Cluster.
We'd like to do any kind of recovery possible with database servers.
Then recover one or more Databases, as well as recover the entire Server.
With "dumping the database" do you mean through "Pre" and "Post" Scripts or directly from Galera/MariaDB on a partition that we would then go to backup with Veeam?
Thank's a lot.
Kind regards
Gianluca
-
- Veeam Software
- Posts: 3622
- Liked: 608 times
- Joined: Aug 28, 2013 8:23 am
- Full Name: Petr Makarov
- Location: Prague, Czech Republic
- Contact:
Re: Backup of a MariaDB Cluster
Hello,
By the way, basic concepts outlined in this whitepaper are still actual. Also, you may have a look at this topic.
Thanks!
I believe this one is a reliable approach.With "dumping the database" do you mean through "Pre" and "Post" Scripts or directly from Galera/MariaDB on a partition that we would then go to backup with Veeam?
By the way, basic concepts outlined in this whitepaper are still actual. Also, you may have a look at this topic.
Thanks!
-
- Expert
- Posts: 231
- Liked: 22 times
- Joined: Feb 26, 2019 12:08 pm
- Full Name: Gianluca Croci
- Contact:
Re: Backup of a MariaDB Cluster
Thank's a lot Petr
-
- Expert
- Posts: 231
- Liked: 22 times
- Joined: Feb 26, 2019 12:08 pm
- Full Name: Gianluca Croci
- Contact:
Re: Backup of a MariaDB Cluster
Discussed with my colleagues who manage MariaDB's servers and DBs.
Unfortunately your proposals are not practicable for us.
First because the servers are always in use, and second because at the moment we're on a few GB of DB, but we expect growth up to a few TB, and we don't have enough disk space.
My proposal would be this, but I don't know how to implement it.
We backup externally to the cluster with CRONTAB, at the end of the Job, the active server should tell Veeam's Server to execute its Job (manual remote execution).
In Windows with powerShell I know it's possible, but on Linux?
Thanks.
Unfortunately your proposals are not practicable for us.
First because the servers are always in use, and second because at the moment we're on a few GB of DB, but we expect growth up to a few TB, and we don't have enough disk space.
My proposal would be this, but I don't know how to implement it.
We backup externally to the cluster with CRONTAB, at the end of the Job, the active server should tell Veeam's Server to execute its Job (manual remote execution).
In Windows with powerShell I know it's possible, but on Linux?
Thanks.
-
- Veeam Software
- Posts: 3622
- Liked: 608 times
- Joined: Aug 28, 2013 8:23 am
- Full Name: Petr Makarov
- Location: Prague, Czech Republic
- Contact:
Re: Backup of a MariaDB Cluster
Hi Gianluca,
If pre-freeze/post-thaw scripts usage is not an option, then you may consider pre-job and post-job scripts. I suppose you can trigger a backup with CRONTAB from pre-job script.
Thanks!
If pre-freeze/post-thaw scripts usage is not an option, then you may consider pre-job and post-job scripts. I suppose you can trigger a backup with CRONTAB from pre-job script.
Thanks!
-
- Product Manager
- Posts: 14835
- Liked: 3082 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: Backup of a MariaDB Cluster
I see no chance for "entire server" restore because that we have no cluster awareness (I did not research whether it would be possible in theory)
I got lost between "and we don't have enough disk space." and "We backup externally to the cluster with CRONTAB". What does "backup" mean for you? Dumping the data to a file?
scheduling the backups via crontab might be easier than using Veeam. If you use Veeam, you might need to increase timeouts as it takes some time to write TBs of data...
I got lost between "and we don't have enough disk space." and "We backup externally to the cluster with CRONTAB". What does "backup" mean for you? Dumping the data to a file?
I would probably back up to a different machine. by doing that, the backup source for Veeam is always the sameto the cluster
scheduling the backups via crontab might be easier than using Veeam. If you use Veeam, you might need to increase timeouts as it takes some time to write TBs of data...
-
- Expert
- Posts: 231
- Liked: 22 times
- Joined: Feb 26, 2019 12:08 pm
- Full Name: Gianluca Croci
- Contact:
Re: Backup of a MariaDB Cluster
OK, thank's a lot for the Help
Who is online
Users browsing this forum: No registered users and 21 guests