This commit is contained in:
2024-10-24 16:12:38 +01:00
parent 927434fa7f
commit 0b41dcf8b4
+1 -13
View File
@@ -64,8 +64,7 @@ spec:
- "-c"
args: ['
echo "start the export";
# kubectl exec -it deploy/gitea-webserver -n gitea -- document_exporter -z /usr/src/gitea/export;
kubectl exec -it deploy/gitea-webserver -- su -c "/app/gitea/gitea dump -c /data/gitea/conf/app.ini -f /data/backup/backup_$(date "+%Y-%m-%d_%Hh-%m").zip" git
kubectl exec -it deploy/gitea-webserver -- su -c "/app/gitea/gitea dump -c /data/gitea/conf/app.ini -f /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").zip" git
echo "Export done"
']
image: "bitnami/kubectl:1.21"
@@ -74,17 +73,6 @@ spec:
mountPath: /data
- name: gitea-documents-backup
mountPath: /backup
# - name: move-attachements
# command:
# - "/bin/sh"
# - "-c"
# args: ['echo "sleep 5 min"; sleep 300;echo "end of sleep"; mv /data/backup/* /documents/ ;echo "move done"']
# image: "busybox"
# volumeMounts:
# - name: gitea-data
# mountPath: /data
# - name: documents
# mountPath: /documents
volumes:
- name: gitea-data
persistentVolumeClaim: