vip export sql
Generate a copy of a database backup for an environment and download it as an archived SQL file.
Usage
vip export sql [options]
Options
Option | Description |
---|---|
-a , --app |
Specify the app |
-d , --debug |
Activate debug output |
-e , --env |
Specify the environment |
-g , --generate-backup |
Generate a fresh database backup and export a copy of that backup. |
-h , --help |
Output the help for the (sub)command |
-o , --output |
Download the file to a specific local directory path with a custom file name. |
-v , --version |
Output the version number |
Examples
- Download an archived copy of the most recent database backup for an environment to the current local directory.
$ vip @example-app.develop export sql
- Download an archived copy of the most recent database backup for an environment to a specific file path.
$ vip @example-app.develop export sql --output=~/Desktop/export.sql.gz
- Generate a fresh database backup for an environment and download a copy of that backup.
$ vip @example-app.develop export sql --generate-backup
Last updated: April 24, 2024