From ad7a41f0d726b2bc01d731979903cfc9f90f5e8b Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 18 Oct 2023 11:58:09 +0200 Subject: [PATCH] Adapt restore to taiga --- .../docker-backup/image/resources/restore.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/infrastructure/docker-backup/image/resources/restore.sh b/infrastructure/docker-backup/image/resources/restore.sh index 6ed2fc0..1cbf65a 100755 --- a/infrastructure/docker-backup/image/resources/restore.sh +++ b/infrastructure/docker-backup/image/resources/restore.sh @@ -12,19 +12,12 @@ function main() { file_env POSTGRES_USER # Restore latest snapshot into /var/backups/restore - rm -rf /var/backups/restore restore-directory '/var/backups/restore' - - rm -rf /var/backups/gitea/* - rm -rf /var/backups/git/repositories/* - cp -r /var/backups/restore/gitea /var/backups/ - cp -r /var/backups/restore/git/repositories /var/backups/git/ - # adjust file permissions for the git user - chown -R 1000:1000 /var/backups + cp -r /var/backups/restore /media - # TODO: Regenerate Git Hooks? Do we need this? - #/usr/local/bin/gitea -c '/data/gitea/conf/app.ini' admin regenerate hooks + # adjust file permissions for the taiga user + chown -R taiga:taiga /media # Restore db drop-create-db