magento / devdocs

[Deprecated] Magento Developer Documentation
Open Software License 3.0
674 stars 1.76k forks source link

command to dump specific tables/databases #9508

Closed ak77-prime closed 2 years ago

ak77-prime commented 2 years ago

Is there an existing issue for this?

Which topic?

https://devdocs.magento.com/cloud/project/project-webint-snap.html#db-dump

What's wrong with the content?

I think this command might be wrong/incomplete:

You can choose to back up selected databases by appending the database names to the command, for example:

php vendor/bin/ece-tools -- main sales

What changes do you propose?

Perhaps the -- should be replaced with db-dump?

web@mymagento.0:~$ vendor/bin/ece-tools db-dump main
The db-dump operation switches the site to maintenance mode, stops all active cron jobs and consumer queue processes, and disables cron jobs before starting the the dump process.
Your site will not receive any traffic until the operation completes.

Anything else that can help to cover this?

Tried it and doesn't work:

web@mymagento.0:~$ vendor/bin/ece-tools -- main

  Command "main" is not defined.
m2-assistant[bot] commented 2 years ago

Hi @ak77-prime. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


hguthrie commented 2 years ago

This does look like it was accidentally omitted. I posed a question to our team to see if I can get some more helpful details on the usage since the help command shows a -- too.