Compare commits
2
Commits
5a16e2eb0d
...
0b41dcf8b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b41dcf8b4 | ||
|
|
927434fa7f |
@@ -64,22 +64,15 @@ spec:
|
|||||||
- "-c"
|
- "-c"
|
||||||
args: ['
|
args: ['
|
||||||
echo "start the export";
|
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 /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 /data/backup/backup_$(date "+%Y-%m-%d_%Hh-%m").zip" git
|
|
||||||
echo "Export done"
|
echo "Export done"
|
||||||
']
|
']
|
||||||
image: "bitnami/kubectl:1.21"
|
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:
|
volumeMounts:
|
||||||
- name: gitea-export
|
- name: gitea-data
|
||||||
mountPath: /gitea-export
|
mountPath: /data
|
||||||
- name: documents
|
- name: gitea-documents-backup
|
||||||
mountPath: /documents
|
mountPath: /backup
|
||||||
volumes:
|
volumes:
|
||||||
- name: gitea-data
|
- name: gitea-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -87,9 +80,6 @@ spec:
|
|||||||
- name: documents
|
- name: documents
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: gitea-documents-backup
|
claimName: gitea-documents-backup
|
||||||
- name: gitea-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: gitea-data
|
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user