Cms: [Feature Request] Perform DB backup from CLI

Created on 29 Mar 2019  路  1Comment  路  Source: craftcms/cms

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.

Most helpful comment

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

>All comments

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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

rynpsc picture rynpsc  路  3Comments

bitboxfw picture bitboxfw  路  3Comments

angrybrad picture angrybrad  路  3Comments

angrybrad picture angrybrad  路  3Comments

benface picture benface  路  3Comments