Skip to content

Commit

Permalink
Update database section to reflect changes of backdrop-contrib#260
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkshire-pudding authored and bugfolder committed Jul 31, 2024
1 parent 8657203 commit 425c065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ TBC see https://github.com/backdrop-contrib/bee/issues/111

### Database
#### `db-export`
*Description:* Export the database as a compressed SQL file (.sql.gz).
*Description:* Export the database as a compressed SQL file (.sql.gz). This uses the --no-tablespaces option by default.
*Aliases:* `dbex` , `db-dump` , `sql-export` , `sql-dump`
*Options:*
- `--extra=--MYSQLDUMPOPTIONS` - (optional) additional `mysqldump` option(s) that should be used. Enclose multiple options in "".
- `--extra=--MYSQLDUMPOPTIONS` - (optional) additional `mysqldump` option(s) that should be used. Enclose multiple options in "". '--no-tablespaces' option is not used unless you add it.

*Arguments:*
- `file` - (optional) The SQL file where the exported database will be saved. Leave blank to use the current date/time as the filename.
Expand All @@ -247,8 +247,8 @@ Note: The path is always relative to the Backdrop root so if you want to export
*Examples:*
- `bee db-export db.sql` - Export the database to db.sql.gz.
- `bee db-export` - Export the database to [DATE_TIME].sql.gz.
- `bee db-export ../db/db_export.sql` - Export the database to ../db/db_export.sql.gz
- `bee db-export --extra="--no-tablespaces"` Export the database to [DATE_TIME].sql.gz using no-tablespaces option.
- `bee db-export --extra=" " db.sql` - Export the database to db.sql.gz without using the '--no-tablespaces' option.
- `bee db-export --extra="--no-data --no-tablespaces" db.sql` Export the database without data, and using the '--no-tablespaces' option, to db.sql.gz.

#### `db-import`
*Description:* Import an SQL file into the current database.
Expand Down

0 comments on commit 425c065

Please sign in to comment.