Debug
This commit is contained in:
parent
9af09cc676
commit
d4b6326c54
2 changed files with 3 additions and 7 deletions
backups
|
@ -16,7 +16,7 @@ spec:
|
|||
- 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" ]
|
||||
args: ["/backup_storage", "rclone://destination:$(BUCKET)", "--no-encryption", "--full-if-older-than", "1M" ]
|
||||
env:
|
||||
- name: RCLONE_CONFIG_DESTINATION_ACL
|
||||
value: private
|
||||
|
@ -32,9 +32,9 @@ spec:
|
|||
mountPropagation: HostToContainer
|
||||
- name: mount-container
|
||||
image: rclone/rclone:1.69.0
|
||||
args: ["mount", "--allow-non-empty", "source:$(BUCKET)", "/backup_storage"]
|
||||
securityContext:
|
||||
privileged: true
|
||||
args: ["mount", "--allow-non-empty", "source:${BUCKET}", "/backup_storage"]
|
||||
env:
|
||||
- name: RCLONE_CONFIG_SOURCE_ACL
|
||||
value: private
|
||||
|
|
|
@ -3,15 +3,13 @@ kind: CronJob
|
|||
metadata:
|
||||
name: backup
|
||||
spec:
|
||||
schedule: "07 13 * * *"
|
||||
schedule: "16 13 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: backup-container
|
||||
command: ["sleep"]
|
||||
args: ["1000000"]
|
||||
env:
|
||||
- name: BUCKET
|
||||
value: "xrootd-test-mirror"
|
||||
|
@ -26,8 +24,6 @@ spec:
|
|||
name: xrootd-secret
|
||||
key: "destination-secret-access-key"
|
||||
- name: mount-container
|
||||
command: ["sleep"]
|
||||
args: ["1000000"]
|
||||
env:
|
||||
- name: BUCKET
|
||||
value: "xrootd-test"
|
||||
|
|
Loading…
Add table
Reference in a new issue