Runbook Posts

7 posts of type "Runbook"

lladdr.info OpenBSD

purpose and application

This runbook sets up the environment and installs the application.

definitions

None.

prerequisites

  1. checked out [lladdr.info repository|https://git.sr.ht/~nighthawk/lladdr.info]
  2. pre-compiled binary of lladdr.info

steps

on the server

  1. Setting up the user account, downloading …
Read more →

Gotosocial Restore

purpose and application

Restore gotosocial on OpenBSD from a backup done via the following procedure

definitions

None.

prerequisites

  1. gotosocial and postgresql need to be installed pkg_add gotosocial-- postgresql-server--
  2. gotosocial must not be running rcctl stop gotosocial

steps

  1. create the …
Read more →

Upgrading Netbox

On local system

  • git pull upstream <tag> --rebase
  • git rebase
  • git commit -a -m 'upgrade to <tag>'

On server

  • su -s /bin/ksh -l _netbox
  • doas rcctl stop netbox_rq
  • doas rcctl stop netbox
  • git pull
  • bash upgrade.sh
  • doas rcctl start netbox
  • doas rcctl start netbox_rq
Read more →

Netbox Backup

purpose and application

Use this for backing up your netbox instance. This is specific to my setup YMMV.

definitions

  • YMMV - Your Mileage May Vary

steps

  1. Become netbox user su -s /bin/ksh -l _netbox
  2. Backup the database pg_dump -W postgres://netbox@127.0.0.1:5432/netbox | gzip > …
Read more →

Docspell Backup

purpose and application

When you want to backup docspell.

definitions

None.

steps

  1. Become docspell user
  2. Backup database pg_dump -W postgres://docspell@127.0.0.1:5432/docspell | gzip > backup/docsell_$(date +%Y%m%dT%H%M%S).psql.gz
  3. Backup joex config cp docspell-joex-0.41.0/conf/docspell-joex.conf …
Read more →

Gotosocial Backup

purpose and application

Backing up gotosocial.

definitions

None.

steps

  1. Backup db pg_dump -W postgres://gotosocial@127.0.0.1:5432/gotosocial | gzip > /var/tmp/gotosocial_$(date +%Y%m%dT%H%M%S).psql.gz
  2. Backup media files gotosocial admin media list-attachments --config-path /etc/gotosocial.yaml …
Read more →

Keycloak Backup

purpose and application

Use this procedure when you want to backup keycloak.

definitions

None.

steps

  1. stop keycloak rcctl stop keycloak
  2. become keycloak user su -s /bin/ksh -l _keycloak
  3. change into keycloak basedir cd keycloak
  4. export realms bash bin/kc.sh export --file ../backup/keycloak-$(date …
Read more →