sonu_2311

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022
03:30 PM
- 3,663 Views
Hi Team,
Please any one can guide me how to take the MySQL Database backup using Ansible.
1 Solution
Accepted Solutions
magnuz

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022
10:45 PM
- 3,651 Views
Hi @sonu_2311 ,
You can perform a dump using the mysql_db module. To perform a dump of a mysql db called db1:
- name: Dump database db1 mysql_db: state: dump name: db1 target: /tmp/dump.sql
For further details please visit the Ansible documentation of this module.
Regards,
2 Replies
magnuz

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022
10:45 PM
- 3,652 Views
Hi @sonu_2311 ,
You can perform a dump using the mysql_db module. To perform a dump of a mysql db called db1:
- name: Dump database db1 mysql_db: state: dump name: db1 target: /tmp/dump.sql
For further details please visit the Ansible documentation of this module.
Regards,
sonu_2311

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022
09:18 PM
- 3,627 Views
Thanks. Its worked.
Join the discussion
You must log in to join this conversation.