diff --git a/backup.sh b/backup.sh
index 7af43bde70d2cfe522f1ed0c49a77c873fb8bf50..23d213decff125ffe0cf6c9d886c95215d8cfcf4 100644
--- a/backup.sh
+++ b/backup.sh
@@ -2,6 +2,11 @@
 
 echo "Backing up Keycloak DB and config"
 
+if [ ! -d "backups" ]; then
+  echo "backups does exist. Create this."
+  mkdir "backups"
+fi
+
 out="backups/keycloak_$(date +%Y%m%d_%H%M).tar.gz"
 tar -czf $out keycloak_db