xenyo/dbtools
最新稳定版本:v1.1
Composer 安装命令:
composer require xenyo/dbtools
包简介
Command line tools for importing and exporting databases for Drupal sites.
README 文档
README
Command line tools for importing and exporting databases on Drupal sites.
Features
- DB dumps exclude cache, history and watchdog and sessions tables.
- Option to import and export with compression (gzip).
Installation
Run this command in your project root to install the package:
composer require xenyo/dbtools
Commands
All commands must be run from the project root.
Export database
composer exec dbe [file]
Exports the database to the given file. Defaults to database.sql.
Import database
composer exec dbi [file]
Drops existing database and imports the database from the given file. Defaults to database.sql.
Export database (gzipped)
composer exec dbez [file]
Exports the database to the given file. Defaults to database.sql.gz.
Import database (gzipped)
composer exec dbiz [file]
Drops existing database and imports the database from the given file. Defaults to database.sql.gz.
统计信息
- 总下载量: 242
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-07-05