From fb2e06cc6432ca244ac3de5baaa36aa6cf77d06c Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 7 Feb 2025 15:18:25 +0100 Subject: [PATCH] Quiet output and run later and only once per day --- backups/base/backup-cronjob.yaml | 2 +- backups/overlays/test/xrootd/backup-cronjob.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backups/base/backup-cronjob.yaml b/backups/base/backup-cronjob.yaml index 921f948..5662498 100644 --- a/backups/base/backup-cronjob.yaml +++ b/backups/base/backup-cronjob.yaml @@ -15,7 +15,7 @@ spec: command: ["bash"] securityContext: 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: - name: RCLONE_CONFIG_DESTINATION_ACL value: private diff --git a/backups/overlays/test/xrootd/backup-cronjob.yaml b/backups/overlays/test/xrootd/backup-cronjob.yaml index f05d93c..6b36622 100644 --- a/backups/overlays/test/xrootd/backup-cronjob.yaml +++ b/backups/overlays/test/xrootd/backup-cronjob.yaml @@ -3,7 +3,7 @@ kind: CronJob metadata: name: backup spec: - schedule: "*/5 * * * *" + schedule: "15 02 * * *" jobTemplate: spec: template: