umount after job finishes
This commit is contained in:
parent
3d8a5443e9
commit
330e9c22d3
1 changed files with 3 additions and 3 deletions
|
@ -15,8 +15,8 @@ spec:
|
|||
containers:
|
||||
- name: backup-container
|
||||
image: docker.sunet.se/drive/duplicity:bookworm-slim-1
|
||||
command: ["duplicity"]
|
||||
args: ["/backup_storage", "rclone://destination:$(BUCKET)", "--no-encryption", "--full-if-older-than", "1M" ]
|
||||
command: ["bash"]
|
||||
args: ["-c", "duplicity /backup_storage rclone://destination:$(BUCKET) --no-encryption --full-if-older-than 1M; umount /backup_storage" ]
|
||||
env:
|
||||
- name: RCLONE_CONFIG_DESTINATION_ACL
|
||||
value: private
|
||||
|
@ -32,7 +32,7 @@ spec:
|
|||
mountPropagation: HostToContainer
|
||||
- name: mount-container
|
||||
image: rclone/rclone:1.69.0
|
||||
args: ["mount", "--allow-non-empty", "source:$(BUCKET)", "/backup_storage"]
|
||||
args: ["mount", "--allow-non-empty", "--daemon", "source:$(BUCKET)", "/backup_storage"]
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
|
|
Loading…
Add table
Reference in a new issue