fix path
This commit is contained in:
@@ -64,8 +64,7 @@ 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"
|
||||||
@@ -74,17 +73,6 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
- name: gitea-documents-backup
|
- name: gitea-documents-backup
|
||||||
mountPath: /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:
|
volumes:
|
||||||
- name: gitea-data
|
- name: gitea-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user