For developers

Disaster recovery

5min

This guide describes how to restore a project from a backup for developers and is not meant for disaster recovery of the hosting infrastructure.

Restore environment

If the environment was accidently removed, the only way to restore it is to redeploy it.

Restore database from a backup

Firstly, determine what database backup you wish to use using the following command:

Shell


Then, use --name flag to download the selected backup:

Shell


Now, upload this backup to the production environment:

Shell


Finally, log into the container and import the database:

Shell


Restore files from a backup

TODO: Provide instructions. It's similar to database recovery flow: first download files to the local env, then copy them to the production (or other) environment using hosty cp command.