fix backup & restore script

This commit is contained in:
Michael Jerger 2025-01-15 13:04:37 +01:00
parent 0b7e7991ce
commit 1cc181662e
3 changed files with 2 additions and 4 deletions
.gitignore
infrastructure/backup/image/resources

2
.gitignore vendored
View file

@ -32,3 +32,5 @@ config.edn
build-and-move-frontend.sh
website.yaml
.envrc

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bb
(require
'[babashka.tasks :as t]
'[dda.backup.core :as bc]
'[dda.backup.config :as cfg]
'[dda.backup.restic :as rc]
@ -25,8 +24,6 @@
(bak/backup-file! (:file-config config))
(bak/backup-db! (:db-config config)))
(t/shell "start-maintenance.sh")
(prepare!)
(restic-repo-init!)
(restic-backup!)
(t/shell "end-maintenance.sh")

View file

@ -18,7 +18,6 @@
(pg/drop-create-db! (:db-config config))
(rs/restore-db! (:db-config config))
(rs/restore-file! (:file-restore-config config))
(t/shell "mv /var/backups/restore/* /media")
(t/shell "chown -R 999:999 /media"))
(prepare!)