From 581b50bf13b5741395b7d2c0503239a42f3f8c01 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 23 Aug 2024 17:47:52 +0200 Subject: [PATCH] fix restore --- infrastructure/backup/image/resources/restore.bb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/infrastructure/backup/image/resources/restore.bb b/infrastructure/backup/image/resources/restore.bb index 5a637a7..c8a9cd1 100755 --- a/infrastructure/backup/image/resources/restore.bb +++ b/infrastructure/backup/image/resources/restore.bb @@ -34,13 +34,13 @@ (defn restic-restore! [] (rs/restore-file! file-config) - (tasks/sh "bash" "-c" "rm -rf /var/backups/gitea/*") - (tasks/sh "bash" "-c" "rm -rf /var/backups/git/repositories/*") - (tasks/sh "mv" "/var/backups/restore/gitea" "/var/backups/") - (tasks/sh "mv" "/var/backups/restore/git/repositories" "/var/backups/git/") - (tasks/sh "chown" "-R" "1000:1000" "/var/backups") - (pg/drop-create-db! db-config) - (rs/restore-db! db-config)) + (tasks/shell ["bash" "-c" "rm -rf /var/backups/gitea/*"]) + (tasks/shell ["bash" "-c" "rm -rf /var/backups/git/repositories/*"]) + (tasks/shell ["mv" "/var/backups/restore/gitea" "/var/backups/"]) + (tasks/shell ["mv" "/var/backups/restore/git/repositories" "/var/backups/git/"]) + (tasks/shell ["chown" "-R" "1000:1000" "/var/backups"]) + (pg/drop-create-db! (merge db-config {:debug true})) + (rs/restore-db! (merge db-config {:debug true}))) (prepare!) (restic-restore!)