diff --git a/copyJugaralpadelDB b/copyJugaralpadelDB new file mode 100755 index 00000000..1ae273e1 --- /dev/null +++ b/copyJugaralpadelDB @@ -0,0 +1,23 @@ +# Backup date + +today=$(date "+%Y_%m_%d-%H_%M_%S") + +echo "Current date: $today" + +# build up filename + +# destination folder (change to your own needs) + +BACKUP_FOLDER=/tmp + +file_name=$BACKUP_FOLDER/bkup_jugaralpadel +new_name=$file_name-$today.sql +echo "Backup file name: " "$new_name" + +kubectl --kubeconfig /home/creylopez/.kube/config -n jugaralpadel exec -ti deployment.apps/db -- /usr/lib/postgresql/15/bin/pg_dump --username=creylopez --dbname=jugaralpadel > $new_name + +message="Backup stored "$today + +sudo -u creylopez cat $new_name | mail -s "Jugar al Pádel backup finished" "creylopez@yahoo.es" + +sudo rm $new_name diff --git a/mypdr/registry-deployment.yaml b/mypdr/registry-deployment.yaml index 64a3f8a9..9d9a2b7c 100644 --- a/mypdr/registry-deployment.yaml +++ b/mypdr/registry-deployment.yaml @@ -35,7 +35,7 @@ spec: - name: REGISTRY_HTTP_SECRET value: SomeRandomStringToUse - name: REGISTRY_STORAGE_DELETE_ENABLED - value: ‘true’ + value: "true" - name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY value: /main image: registry:2