diff --git a/docs/properties.md b/docs/properties.md index 37aef6d4..01d04b16 100644 --- a/docs/properties.md +++ b/docs/properties.md @@ -82,5 +82,27 @@ Cool! This phing-ism is what powers our environment-specific property layering a [More info](../tasks/acquia.xml#L32-L59) +### DB Loading + +| Property | Default value | What is it? | +|---|---|---| +| `db.load.export_pattern` | `artifacts/*` | Pattern to match gzipped database dump files. | +| `db.load.mysql_command` | `drush sqlc` | Command with which to load stuff into Drupal. | +| `db.load.file` | | Load a specific file rather than one matching the `export_pattern`. | + +Example usage: + +``` + + + + + + + +``` + +[More info](../tasks/lib/db.xml) + ---- Copyright 2016 Palantir.net, Inc. diff --git a/tasks/lib/db.xml b/tasks/lib/db.xml new file mode 100644 index 00000000..1d29862e --- /dev/null +++ b/tasks/lib/db.xml @@ -0,0 +1,39 @@ + + + + + Hello world. + + + + + + + + + + + + + + Missing database export at '${db.load.export_pattern}.sql.gz' + +Please download a database export to: + ${db.load.export_pattern}.sql.gz + +Alternatively, you can specify the export file prefix; for example: + vendor/bin/phing [YOUR-TARGET] -Ddb.load.export_pattern=artifacts/prod-* + +Or, you can specify the export file directly: + vendor/bin/phing [YOUR-TARGET] -Ddb.load.file=artifacts/my_db.sql.gz + + + + + + Loading the `${db.load.file}` database... + + + + +