From a1f24d9dfea253824550be7b89cdccc602f54618 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 24 Oct 2023 14:36:54 +0200 Subject: [PATCH] [Skip-CI] Add ToDo --- infrastructure/backup/image/resources/restore.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infrastructure/backup/image/resources/restore.sh b/infrastructure/backup/image/resources/restore.sh index 6ed2fc0..92c16ca 100755 --- a/infrastructure/backup/image/resources/restore.sh +++ b/infrastructure/backup/image/resources/restore.sh @@ -12,13 +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/ + cp -r /var/backups/restore/gitea /var/backups/ #ToDo: mv instead of cp or rm -rf after + cp -r /var/backups/restore/git/repositories /var/backups/git/ #ToDo: mv instead of cp or rm -rf after # adjust file permissions for the git user chown -R 1000:1000 /var/backups