Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Perform DB backup from CLI #4075

Closed
spAnser opened this issue Mar 29, 2019 · 1 comment
Closed

[Feature Request] Perform DB backup from CLI #4075

spAnser opened this issue Mar 29, 2019 · 1 comment

Comments

@spAnser
Copy link

spAnser commented Mar 29, 2019

It would be helpful to be able to perform database backups through the command line.

Yes there is probably fairly easy ways to do this already, but having Craft already handling the MySQL user, password, database name, file naming and compression. It would be much easier to just call a quick backup/db action through the CLI.

@brandonkelly
Copy link
Member

Added for the next release!

The following are supported:

# create backup in the given folder
./craft backup ./backups

# create backup in working directory with custom filename
./craft backup backup.sql

# create backup in specific location
./craft backup ./backups/backup.sql

# create backup in the storage/backups/ folder
./craft backup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants