fix backup & restore script
This commit is contained in:
parent
0b7e7991ce
commit
1cc181662e
3 changed files with 2 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -32,3 +32,5 @@ config.edn
|
|||
|
||||
build-and-move-frontend.sh
|
||||
website.yaml
|
||||
|
||||
.envrc
|
||||
|
|
|
@ -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")
|
|
@ -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!)
|
||||
|
|
Loading…
Reference in a new issue