Quiet output and run later and only once per day

This commit is contained in:
Micke Nordin 2025-02-07 15:18:25 +01:00
parent fa413ff7ee
commit fb2e06cc64
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ spec:
command: ["bash"] command: ["bash"]
securityContext: securityContext:
privileged: true privileged: true
args: ["-c", "mkdir /backup_storage; rclone mount --daemon source:$(SOURCE_BUCKET) /backup_storage; duplicity /backup_storage rclone://destination:$(DESTINATION_BUCKET) --no-encryption --full-if-older-than 1M; umount /backup_storage"] args: ["-c", "mkdir /backup_storage; rclone mount -q --daemon source:$(SOURCE_BUCKET) /backup_storage; duplicity /backup_storage rclone://destination:$(DESTINATION_BUCKET) --no-encryption --full-if-older-than 1M; umount /backup_storage"]
env: env:
- name: RCLONE_CONFIG_DESTINATION_ACL - name: RCLONE_CONFIG_DESTINATION_ACL
value: private value: private

View file

@ -3,7 +3,7 @@ kind: CronJob
metadata: metadata:
name: backup name: backup
spec: spec:
schedule: "*/5 * * * *" schedule: "15 02 * * *"
jobTemplate: jobTemplate:
spec: spec:
template: template: