Skip to content

Instantly share code, notes, and snippets.

@AlmostGosu
AlmostGosu / confluence-h2-restore.sh
Last active May 23, 2025 08:33
Shell script to recover corrupted Confluence h2 database
#!/bin/bash
# This script has to be run as your confluence user or root
# Create a backup of, and attempt to restore a confluence h2 internal database
# Go home.
cd ~
# Stop confluence
/opt/atlassian/confluence/bin/stop-confluence.sh
# Really though...