fix restore
This commit is contained in:
parent
22199ba2ac
commit
581b50bf13
1 changed files with 7 additions and 7 deletions
|
@ -34,13 +34,13 @@
|
||||||
(defn restic-restore!
|
(defn restic-restore!
|
||||||
[]
|
[]
|
||||||
(rs/restore-file! file-config)
|
(rs/restore-file! file-config)
|
||||||
(tasks/sh "bash" "-c" "rm -rf /var/backups/gitea/*")
|
(tasks/shell ["bash" "-c" "rm -rf /var/backups/gitea/*"])
|
||||||
(tasks/sh "bash" "-c" "rm -rf /var/backups/git/repositories/*")
|
(tasks/shell ["bash" "-c" "rm -rf /var/backups/git/repositories/*"])
|
||||||
(tasks/sh "mv" "/var/backups/restore/gitea" "/var/backups/")
|
(tasks/shell ["mv" "/var/backups/restore/gitea" "/var/backups/"])
|
||||||
(tasks/sh "mv" "/var/backups/restore/git/repositories" "/var/backups/git/")
|
(tasks/shell ["mv" "/var/backups/restore/git/repositories" "/var/backups/git/"])
|
||||||
(tasks/sh "chown" "-R" "1000:1000" "/var/backups")
|
(tasks/shell ["chown" "-R" "1000:1000" "/var/backups"])
|
||||||
(pg/drop-create-db! db-config)
|
(pg/drop-create-db! (merge db-config {:debug true}))
|
||||||
(rs/restore-db! db-config))
|
(rs/restore-db! (merge db-config {:debug true})))
|
||||||
|
|
||||||
(prepare!)
|
(prepare!)
|
||||||
(restic-restore!)
|
(restic-restore!)
|
||||||
|
|
Loading…
Reference in a new issue