I’m not sure how OpenShift works, but in our setup, we use Docker containers for the XWiki app and PostgreSQL database. We bind mount the ‘/usr/local/xwiki’ directory in the XWiki container and ‘/var/lib/postgresql/data’ in the PostgreSQL container to local directories on the host. Then, we have a script that automatically copies these two folders, zips them into a single file, and moves it to a backup folder every night. This backup captures the exact state of the XWiki instance at the moment it was created, and we don’t need to perform any manual steps.