From c7ec51b497c2123dc346e5856b4c493509c0406f Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 29 Sep 2025 19:20:51 +0200 Subject: [PATCH] updated gobackup state --- states/gobackup/defaults.yaml | 10 ++++++---- states/gobackup/install.sls | 11 +++++++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/states/gobackup/defaults.yaml b/states/gobackup/defaults.yaml index c71cef8..f04e191 100644 --- a/states/gobackup/defaults.yaml +++ b/states/gobackup/defaults.yaml @@ -8,12 +8,14 @@ gobackup: arch: amd64 schedule: "10 23 * * *" config: + workdir: /var/lib/gobackup/tmp models: gobackup: - store_with: - type: local - keep: 1 - path: /var/lib/gobackup + storages: + local: + type: local + keep: 1 + path: /var/lib/gobackup compress_with: type: tgz databases: {} diff --git a/states/gobackup/install.sls b/states/gobackup/install.sls index 95fd720..f8ed396 100644 --- a/states/gobackup/install.sls +++ b/states/gobackup/install.sls @@ -12,7 +12,14 @@ gobackup-bin: gobackup-backups-path: file.directory: - - name: {{ gobackup.config.models.gobackup.store_with.path }} + - name: {{ gobackup.config.models.gobackup.storages.local.path }} - user: root - group: root - - mode: 700 + - mode: 755 + +gobackup-backups-path-workdir: + file.directory: + - name: {{ gobackup.config.wordir }} + - user: root + - group: root + - mode: 755