Is there a way to change what the database is named when using the wp db export
command?
When I type wp db export
on one of my WordPress sites, the database gets named {dbname}-{Y-m-d}-{random-hash}.sql
, which is correct according to WP-CLI Commands. When I run the same command on one of my other sites, it names the db dbname.sql
(which I prefer).
Is there a way I can have wp db export
name the exported db dbname.sql
?
I know I can type wp db export dbname.sql
but I just wanted to see if the default when typing wp db export
could be modified.