Back up, restore, and update
Preserve the database and encryption key when moving or updating a Podman installation.
Run these commands as the glodrik OS user on a Podman installation. Set XDG_RUNTIME_DIR=/run/user/$(id -u) after switching to that account if its user systemd session is unavailable.
Back up
Back up PostgreSQL and the Glodrik configuration directory together. secrets.env contains the key needed to decrypt stored credentials. Store the files somewhere protected and keep the restore procedure with them.
umask 077
podman exec glodrik-postgres pg_dump -U glodrik -Fc glodrik > glodrik.dump
tar -C ~/.config -czf glodrik-config.tar.gz glodrik
Restore
Restore on a new host or during a maintenance window. Replacing the destination database destroys its current contents. Verify the destination and preserve a separate backup before doing so.
- Unpack the Glodrik configuration into the user’s
~/.configon the destination. Use the same backup’s database dump and encryption key. - Run the installer on that host. Stop the worker, proxy socket and service, frontend, and API while leaving PostgreSQL running.
- Replace the destination database and load the dump. Use the exact restore commands from the Podman installer guide.
- Run the installer again to start the services. Check sign-in, project and inventory visibility, and a test job that uses a restored credential.
Update
Back up before pulling new images or migrating the database.
git -C ~/glodrik pull --ff-only
~/glodrik/install/podman/setup.sh
The installer regenerates the deployment configuration, preserving secrets.env, ca, and tls. Record any local service-file customizations before updating. Check the release notes, then verify the instance with service status and logs.
