c4k-forgejo/infrastructure/backup/image/resources/list-snapshots.bb
2024-08-23 08:45:43 +02:00

14 lines
358 B
Clojure
Executable file

#!/usr/bin/env bb
(require '[dda.backup.core :as bc]
'[dda.backup.restic :as rc])
(def restic-repo {:password-file (bc/env-or-file "RESTIC_PASSWORD_FILE")
:restic-repository (bc/env-or-file "RESTIC_REPOSITORY")})
(defn list-snapshots!
[]
(rc/list-snapshots! file-config)
(rc/list-snapshots! db-config))
(list-snapshots!)