Several guides exist. If you just want a backup you can use Umbrel or Citrine. If you want a publicly accessible relay that you run on a server computer you can use this old guide and install Nostream. This is the relay I've been using since December 2022.
https://github.com/cameri/nostream
Check out th full guide and instructions section.