# Tolerating MySQL restarts while xtrabackup in progress

**URL:** <https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869>\
**Category:** Percona XtraBackup\
**Tags:** mysql, percona\
**Created:** [October 12, 2023, 1:26pm UTC](https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869 "2023-10-12T13:26:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadzadaa](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ahmadzadaa/32/10433_2.png) [@ahmadzadaa](https://forums.percona.com/u/ahmadzadaa)\
**Post date:** [October 12, 2023, 1:26pm UTC](https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869/1 "2023-10-12T13:26:07Z")

</div>

Is there any way to tolerate MySQL restarts while xtrabackup in progress? like some wait time something that will not break the process.

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [October 12, 2023, 2:01pm UTC](https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869/2 "2023-10-12T14:01:03Z")

</div>

Unfortunately there is no such thing. I am curious what is your use case for that?

---

<div class="post-metadata">

**Author:** ![ahmadzadaa](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ahmadzadaa/32/10433_2.png) [@ahmadzadaa](https://forums.percona.com/u/ahmadzadaa)\
**Post date:** [October 12, 2023, 2:13pm UTC](https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869/3 "2023-10-12T14:13:06Z")

</div>

use case is like, we have scripts which takes daily backups and if someone restarts MySQL without checking if backup in progress they may break the backup of that day.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [October 12, 2023, 2:20pm UTC](https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869/4 "2023-10-12T14:20:05Z")

</div>

> [@ahmadzadaa](#):
>
> if someone restarts MySQL without checking if backup in progress

A few things here:

1. That’s the job of the person restarting mysql. If you have that power, then it is your responsibility to make sure the restart won’t impact other operations.

2. Only the “DBA” should be able to restart MySQL, and the DBA should know about the backup process.

3. How often are you restarting MySQL? Most mysql servers have MONTHS of uptime. Restarting MySQL is not a common task and not something that needs to be happening daily, or even weekly. If you are doing this, then you are managing your MySQL incorrectly and/or have some other issue at hand that need to be fixed.

---

<div class="post-metadata">

**Author:** ![ahmadzadaa](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ahmadzadaa/32/10433_2.png) [@ahmadzadaa](https://forums.percona.com/u/ahmadzadaa)\
**Post date:** [October 12, 2023, 3:06pm UTC](https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869/5 "2023-10-12T15:06:14Z")

</div>

I agree with you, please ignore. Just wanted to check if there is a feature for it

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [October 12, 2023, 4:19pm UTC](https://forums.percona.com/t/tolerating-mysql-restarts-while-xtrabackup-in-progress/25869/6 "2023-10-12T16:19:12Z")

</div>

I don’t know of any database system out there that can support backups through a restart. Most backup tools for any RDBMS need to maintain contact with the database itself to monitor/track changes and when you stop the database, you lose that. MySQL certainly supports backing up while being stopped, but not during a restart.
