try with only 1 file
This commit is contained in:
@@ -69,17 +69,22 @@ spec:
|
||||
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
|
||||
# - 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:
|
||||
@@ -87,9 +92,6 @@ spec:
|
||||
- name: documents
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-documents-backup
|
||||
- name: gitea-data
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-data
|
||||
restartPolicy: Never
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user