fix spec
This commit is contained in:
parent
26822dd8fd
commit
4df437f707
3 changed files with 29 additions and 7 deletions
|
@ -9,8 +9,16 @@
|
||||||
[dda.backup.infrastructure :as i]))
|
[dda.backup.infrastructure :as i]))
|
||||||
|
|
||||||
(s/def ::config
|
(s/def ::config
|
||||||
(s/keys :req-un [::domain/files ::cd/restic-repository ::cd/backup-path]
|
(s/keys :req-un [::domain/files
|
||||||
:opt-un [::cd/certificate-file ::cd/directory ::cd/debug ::cd/dry-run]))
|
::cd/restic-repository
|
||||||
|
::cd/backup-path]
|
||||||
|
:opt-un [::cd/certificate-file
|
||||||
|
::cd/password-file
|
||||||
|
::cd/days-to-keep
|
||||||
|
::cd/months-to-keep
|
||||||
|
::cd/directory
|
||||||
|
::cd/dry-run
|
||||||
|
::cd/debug]))
|
||||||
|
|
||||||
(defn-spec backup! nil?
|
(defn-spec backup! nil?
|
||||||
[config ::config]
|
[config ::config]
|
||||||
|
|
|
@ -8,9 +8,15 @@
|
||||||
[dda.backup.infrastructure :as i]))
|
[dda.backup.infrastructure :as i]))
|
||||||
|
|
||||||
(s/def ::config
|
(s/def ::config
|
||||||
(s/keys :req-un [::cd/restic-repository ::cd/backup-path]
|
(s/keys :req-un [::cd/restic-repository
|
||||||
:opt-un [::cd/certificate-file ::cd/directory ::cd/debug
|
::cd/backup-path]
|
||||||
::cd/dry-run ::cd/days-to-keep ::cd/months-to-keep]))
|
:opt-un [::cd/certificate-file
|
||||||
|
::cd/password-file
|
||||||
|
::cd/days-to-keep
|
||||||
|
::cd/months-to-keep
|
||||||
|
::cd/directory
|
||||||
|
::cd/dry-run
|
||||||
|
::cd/debug]))
|
||||||
|
|
||||||
(defn-spec initalized? boolean?
|
(defn-spec initalized? boolean?
|
||||||
[config ::config]
|
[config ::config]
|
||||||
|
|
|
@ -12,8 +12,16 @@
|
||||||
|
|
||||||
(s/def ::config
|
(s/def ::config
|
||||||
(s/keys :req-un [::domain/target-directory
|
(s/keys :req-un [::domain/target-directory
|
||||||
::cd/restic-repository ::cd/backup-path]
|
::cd/restic-repository
|
||||||
:opt-un [::domain/snapshot-id ::cd/certificate-file ::cd/directory ::cd/debug ::cd/dry-run]))
|
::cd/backup-path]
|
||||||
|
:opt-un [::domain/snapshot-id
|
||||||
|
::cd/certificate-file
|
||||||
|
::cd/password-file
|
||||||
|
::cd/days-to-keep
|
||||||
|
::cd/months-to-keep
|
||||||
|
::cd/directory
|
||||||
|
::cd/dry-run
|
||||||
|
::cd/debug]))
|
||||||
|
|
||||||
(defn-spec restore! nil?
|
(defn-spec restore! nil?
|
||||||
[config ::config]
|
[config ::config]
|
||||||
|
|
Loading…
Reference in a new issue