Skip to content
Snippets Groups Projects

Ajout de backup.sh

Merged
Elian Lorauxrequested to merge
services-desk-183-backup into main
5 open threads
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -2,6 +2,11 @@
@@ -2,6 +2,11 @@
echo "Backing up Keycloak DB and config"
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"
out="backups/keycloak_$(date +%Y%m%d_%H%M).tar.gz"
tar -czf $out keycloak_db
tar -czf $out keycloak_db
Loading