# Database backup and restore on console

**URL:** <https://forum.mautic.org/t/database-backup-and-restore-on-console/33963>\
**Category:** Product Support\
**Created:** [October 29, 2024, 9:36am UTC](https://forum.mautic.org/t/database-backup-and-restore-on-console/33963 "2024-10-29T09:36:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexnitsche](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexnitsche/32/12272_2.png) [@alexnitsche](https://forum.mautic.org/u/alexnitsche)\
**Post date:** [October 29, 2024, 9:36am UTC](https://forum.mautic.org/t/database-backup-and-restore-on-console/33963/1 "2024-10-29T09:36:02Z")

</div>

**Your software**  
My Mautic version is: 5.1.0  
My PHP version is: 8.2.20  
My Database type and version is: mariadb:10.5.18

**Your problem**  
I want to setup simple database backup and restore tasks in my deployer script. I want them to automatically read the mautic database configuration. Do i have to use the third-party console command `sidus:database:mysqldump` of the [SidusDatabaseMaintenanceBundle](https://github.com/VincentChalnot/SidusDatabaseMaintenanceBundle) and the built-in `doctrine:database:import` command to do so?
