---1) creazione nuova org su gitea Sporteams
---2) crezione progetto stsharedservices
---3) deploy postregsdb su stsharedservices
---4) deploy rabbitmq su stsharedservices
---5) export db Geco
---6) import db Geco
---7) creazione progetti gecofe e gecobe
8) clonazione da analoghi st
9) deploy





kubectl cnpg hibernate on pg-athleteos -n athleteos-dev


stpgclusterdev-rw.stsharedservices-dev.svc.cluster.local

kubectl cnpg delete cluster stpgclusterdev

devVkn9tcHSxK7E


Backup
#!/bin/sh
source_env=dbdev
#target_env=dbqa 
dbname=geco

backupfile=${dbname}.backup
#cd /shared/dbdata/sql

kubectl exec -it postgresql-1-postgresql-0   -c postgresql-server -n ${source_env} -- pg_dump -U postgres  -d ${dbname} -F c -b -v -f /shared/backup/$backupfile
kubectl cp ${source_env}/postgresql-1-postgresql-0:/shared/backup/${backupfile} ${backupfile}

#mv $backupfile restore_${backupfile}
kubectl cp ${backupfile} ${target_env}/postgresql-1-postgresql-0:/tmp/restore_${backupfile}
kubectl exec -it postgresql-1-postgresql-0  -c postgresql-server -n ${target_env} --  psql -U postgres  -c "drop database ${dbname}"
kubectl exec -it postgresql-1-postgresql-0  -c postgresql-server -n ${target_env} --  psql -U postgres  -c "create database ${dbname}"
kubectl exec -it postgresql-1-postgresql-0  -c postgresql-server -n ${target_env} --  pg_restore -U postgres -d ${dbname} /tmp/restore_${backupfile}


scp geco-20260418-171917.backup.gz barucci@10.20.1.101:/root/work/fromst

iZmBf42AVzDtD8ZcA9pFvtIGX6cbg9VvzjE0Jd7LkZnplvpceCAYjLqQRr7Z7SsA


rabbitmqcluster.dbdev.svc.cluster.local=stmqclusterdev.stsharedservices-dev.svc.cluster.local