Skip to main content
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

OptionDescription
--ansiForce (or disable --no-ansi) ANSI output
--defineDefine a configuration item value.
--element[all|code|files|database|db] Element to be backed up
--helpDisplay help for the given command. When no command is given display help for the <info>list</info> command
--keep-forRetention period, in days, to retain backup. It defaults to 365 days.
--no-ansiNegate the "--ansi" option
--no-interactionDo not ask any interactive question
--quietDo not output any message
--verboseIncrease the verbosity of messages: 1 for normal output (-v), 2 for more verbose output (-vv), and 3 for debug (-vvv)
--versionDisplay this application version
--yesAnswer all confirmations with "yes"
Back to all commands