For developers
Disaster recovery
5 min
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 hosty backup\ database\ list full then, use name flag to download the selected backup hosty backup\ database\ download full name=2024 07 08t00 42 13z full gzip /dump sql gz now, upload this backup to the production environment hosty cp production /dump sql gz hosty //path/to/persistent/storage/dump sql gz v finally, log into the container and import the database hosty sh production gzip d /path/to/persistent/storage/dump sql gz | mysql user="$db user" password="$db password" host="$db host" $db name rm /path/to/persistent/storage/dump sql 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