To restore the backup you’ve selected, follow these steps:
Using the CLI
In the Console
Run the following command:
upsun backup:restore <BACKUP_ID>
Press enter to agree with the consequences and continue.
Next to the backup you’ve selected, click More .
Click Restore.
Read through the consequences and click Yes, Restore.
The data is restored and your backed-up environment is deployed.
This deployment uses the built app, including variables, from when the backup was taken.
Warning
The code is also initially restored, but Upsun Cloud doesn’t modify your Git repository.
So any future (re)deployments use the current Git repository to build the environment.To restore your code to its previous state when the backup was taken,
use Git commands such as revert.Note that you can also opt out of restoring the code entirely by using the --no-code flag.
For more information, see how backup and restore works on Upsun Cloud.Also, see how resource allocation works when you restore a backup.
If your target environment doesn’t exist yet, you can create it by branching an existing environment.
The new target environment will be an exact copy of the existing (parent) environment.To do so, use the --branch-from option to specify the parent of your new target environment: