Skip to main content
Command

terminus backup:restore


Description

Restores a specific backup or the latest backup.

Example Usage

terminus backup:restore --file FILE --element ELEMENT -- <site>.<env>

backup:restore <site>.<env> Restores the most recent backup of any type to <site>'s <env> environment.


backup:restore <site>.<env> --file=<backup> Restores backup with the <backup> file name to <site>'s <env> environment. Use terminus backup:list to identify available backups.


backup:restore <site>.<env> --element=<element> Restores the most recent <element> backup to <site>'s <env> environment.


Options

OptionDescription
--ansiForce (or disable --no-ansi) ANSI output
--defineDefine a configuration item value.
--element[all|code|files|database|db] Backup element
--file[filename.tgz] Name of backup file on the plaform
--helpDisplay help for the given command. When no command is given display help for the <info>list</info> command
--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