# How to take MySQL backup running on Kubernetes using xtrabackup?

**URL:** <https://forums.percona.com/t/how-to-take-mysql-backup-running-on-kubernetes-using-xtrabackup/10345>\
**Category:** Percona XtraBackup\
**Tags:** mysql\
**Created:** [May 5, 2021, 8:57am UTC](https://forums.percona.com/t/how-to-take-mysql-backup-running-on-kubernetes-using-xtrabackup/10345 "2021-05-05T08:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mughees52](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mughees52/32/3156_2.png) [@mughees52](https://forums.percona.com/u/mughees52)\
**Post date:** [May 5, 2021, 8:57am UTC](https://forums.percona.com/t/how-to-take-mysql-backup-running-on-kubernetes-using-xtrabackup/10345/1 "2021-05-05T08:57:27Z")

</div>

The restoring of 40Gb take 3.5 hours to finished(25Gb innodb\_buffer\_pool\_size, 5 CPU)  
now, I downloaded the “mydumper” tool and the backup is very fast but the restore with 10 threads take almost the same as regular restore, 4 hours

Do you have any suggestion on how can I make a backup of MySQL running on K8’s using Percona Xtrabackup?

Am I missing something with the restore (MySQL 8.0.21 community version)?

---

<div class="post-metadata">

**Author:** ![willis-yang](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@willis-yang](https://forums.percona.com/u/willis-yang)\
**Post date:** [March 30, 2022, 3:39am UTC](https://forums.percona.com/t/how-to-take-mysql-backup-running-on-kubernetes-using-xtrabackup/10345/2 "2022-03-30T03:39:29Z")

</div>

i have same problem too,did you resolve this problem.can you help me ?
