Command
terminus backup:create
Description
Creates a backup of a specific site and environment.
Example Usage
terminus backup:create --element ELEMENT --keep-for KEEP-FOR -- <site>.<env>
backup:create <site>.<env>
Creates a backup of <site>'s <env> environment.
backup:create <site>.<env> --element=<element>
Creates a backup of <site>'s <env> environment's <element>.
backup:create <site>.<env> --keep-for=<days>
Creates a backup of <site>'s <env> environment and retains it for <days> days.
backup:create <site>.<env> --element=<element> --keep-for=<days>
Creates a backup of <site>'s <env> environment's <element> and retains it for <days> days.
Options
Option | Description |
---|---|
--ansi | Force (or disable --no-ansi) ANSI output |
--define | Define a configuration item value. |
--element | [all|code|files|database|db] Element to be backed up |
--help | Display help for the given command. When no command is given display help for the <info>list</info> command |
--keep-for | Retention period, in days, to retain backup. It defaults to 365 days. |
--no-ansi | Negate the "--ansi" option |
--no-interaction | Do not ask any interactive question |
--quiet | Do not output any message |
--verbose | Increase the verbosity of messages: 1 for normal output (-v), 2 for more verbose output (-vv), and 3 for debug (-vvv) |
--version | Display this application version |
--yes | Answer all confirmations with "yes" |