Skip to content
Snippets Groups Projects
Commit b3cad7fc authored by Elian Loraux's avatar Elian Loraux
Browse files

fix make directory

parent f946cdd8
No related branches found
No related tags found
1 merge request!5Ajout de 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment