WP Engine's restore point dumpfiles are named mysql.sql and arrive in wp-content
WP Migrate DB dump files have names like website_wp-migrate-20150903035557.sql
BackUpWordPress dumpfiles have names like database-example-com-1431114127.sql
All of those should work out of the box. There's got to be a way of using Ansible's with_fileglob to check the three primary directories: /*.sql, /site/*.sql, /site/wp-content/*.sql. I had something like this early on, but simplified to get everything working.
Two use cases which should work out of the box:
mysql.sql
and arrive inwp-content
website_wp-migrate-20150903035557.sql
database-example-com-1431114127.sql
All of those should work out of the box. There's got to be a way of using Ansible's
with_fileglob
to check the three primary directories:/*.sql
,/site/*.sql
,/site/wp-content/*.sql
. I had something like this early on, but simplified to get everything working.