# Restore Semaphore

### Manual Restore

We haven't included a playbook in Semaphore to restore itself, because it's a bit like sawing the branch off that you're hanging from. To restore from your Semaphore backup, you can follow this process.

1. Start with a fresh install following the [Deploy Semaphore Guide](https://docs.netos.io/books/semaphore-netops/page/deploy-semaphore-netos-projects), except CTRL-C and exit the installation.
2. Search and replace the `semaphore-netos-netops.sql` file in the `/netos/netos-netops/roles/semaphore-install/files` with your SQL backup and restart the install using `deploy.sh`
3. Restore the tar.gz file to `/netos/`
4. Restore the tar.gz file to `/etc/nginx`
5. Restart the server and connect to Semaphore

### Decrypting Backup Files

If you want to manually decrypt the `enc` files on your local workstation, use the following commands.

`openssl enc -aes-256-cbc -d -in BACKUP_FILE.enc -out OUTPUT.sql.gz/.tar.gz`

You will need the password set in the Semaphore Backup Settings Semaphore environment variable `ENCRYPTION_KEY`.