@@ -199,6 +199,64 @@ TODO: add a disaster recovery.
<!-- rebuild from scratch? not necessarily those procedures (e.g. see -->
<!-- "Installation" below but some pointers. -->
### Restoring a site from backups
The first thing you need to decide is where you want to restore from. Typically you want to restore the site from the **source** server. If you do not know where the source server is, you can find it in `tor-puppet.git`, in the `modules/roles/files/static-components.yaml`.
Then head to the Bacula director to perform the restore:
ssh bacula-director-01
And run the [restore procedure](https://gitlab.torproject.org/tpo/tpa/team/-/wikis/howto/backup#restore-files). Enter the bacula console:
# bconsole
Then the procedure, in this case we're restoring from static-gitlab-shim:
restore
5 # (restores latest backup from a host)
77 # (picks static-gitlab-shim from the list)
mark /srv/static-gitlab-shim/status.torproject.org
done
yes
Then wait for the backup to complete. You can check the progress by
typing `mess` to dump all messages (warning: that floods your console)
or `status director`. When the backup is done, you can type `quit`.
It will be directly on the host, in `/var/tmp/bacula-restores`. You
can change that path to restore in-place in the last step, by typing
`mod` instead of `yes`. The rest of the guide assumes the restored
files are in `/var/tmp/bacula-restores/`.
Now go on the source server:
ssh static-gitlab-shim.torproject.org
If you haven't restored in place, you should move the current site aside, if present: