Compare commits

..
2 Commits
Author SHA1 Message Date
pi-ux-ce 0b41dcf8b4 fix path 2024-10-24 16:12:38 +01:00
pi-ux-ce 927434fa7f try with only 1 file 2024-10-24 16:12:04 +01:00
+5 -15
View File
@@ -64,22 +64,15 @@ 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"
- 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-export
mountPath: /gitea-export
- name: documents
mountPath: /documents
- name: gitea-data
mountPath: /data
- name: gitea-documents-backup
mountPath: /backup
volumes:
- name: gitea-data
persistentVolumeClaim:
@@ -87,9 +80,6 @@ spec:
- name: documents
persistentVolumeClaim:
claimName: gitea-documents-backup
- name: gitea-data
persistentVolumeClaim:
claimName: gitea-data
restartPolicy: Never
---