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