ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

Database dumps #207

Closed davidromani closed 7 years ago

davidromani commented 7 years ago

Hi.

It's possible to add interchange database dump features? Like these capifony commands:

cap database:copy:to_local  # Dumps remote database, downloads it to local, and populates here
cap database:copy:to_remote # Dumps local database, loads it to remote, and populates there
cap database:dump:local     # Dumps local database
cap database:dump:remote    # Dumps remote database

Thanks.

ricardclau commented 7 years ago

Hi

Well, I guess you could use the ansible mysql_db module in hooks (which has things like state: dump) or sth similar.

Capistrano adds features like these as it is a Ruby project but in ansible we can use the official Ansible modules

davidromani commented 7 years ago

thanks @ricardclau