Runbook Posts
7 posts
of type "Runbook"
lladdr.info OpenBSD
📋
runbook
purpose and application
This runbook sets up the environment and installs the application.
definitions
None.
prerequisites
- checked out [lladdr.info repository|https://git.sr.ht/~nighthawk/lladdr.info]
- pre-compiled binary of lladdr.info
steps
on the server
- Setting up the user account, downloading …
Read more →
purpose and application
Restore gotosocial on OpenBSD from a backup done via the following procedure
definitions
None.
prerequisites
- gotosocial and postgresql need to be installed
pkg_add gotosocial-- postgresql-server--
- gotosocial must not be running
rcctl stop gotosocial
steps
- create the …
Read more →
Upgrading Netbox
📋
runbook
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
📋
runbook
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
- Become netbox user
su -s /bin/ksh -l _netbox
- Backup the database
pg_dump -W postgres://netbox@127.0.0.1:5432/netbox | gzip > …
Read more →
purpose and application
When you want to backup docspell.
definitions
None.
steps
- Become docspell user
- 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
- Backup joex config
cp docspell-joex-0.41.0/conf/docspell-joex.conf …
Read more →
purpose and application
Backing up gotosocial.
definitions
None.
steps
- 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
- Backup media files
gotosocial admin media list-attachments --config-path /etc/gotosocial.yaml …
Read more →
purpose and application
Use this procedure when you want to backup keycloak.
definitions
None.
steps
- stop keycloak
rcctl stop keycloak
- become keycloak user
su -s /bin/ksh -l _keycloak
- change into keycloak basedir
cd keycloak
- export realms
bash bin/kc.sh export --file ../backup/keycloak-$(date …
Read more →