From d433698b672cfbd4081fafbdb3d993503123fd87 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sat, 14 Jun 2014 21:09:53 +0530 Subject: [PATCH] fix backup restore operation, closes #81 --- Changelog.md | 1 + assets/init | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index df34a73b..4a317ef0 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ # Changelog **latest** +- fix restore backup operation - upgrade to gitlab-shell 1.9.6 - added app:sanitize command - automatically migrate database when gitlab version is updated diff --git a/assets/init b/assets/init index 20c6e50d..42bd2b7a 100755 --- a/assets/init +++ b/assets/init @@ -524,19 +524,19 @@ appRake () { if [ "$1" == "gitlab:backup:restore" ]; then # user needs to select the backup to restore - nBackups=$(ls tmp/backups/*_gitlab_backup.tar | wc -l) + nBackups=$(ls /home/git/data/backups/*_gitlab_backup.tar | wc -l) if [ $nBackups -eq 0 ]; then echo "No backup present. Cannot continue restore process.". return 1 fi - for b in `ls tmp/backups/ | sort -r` + for b in `ls /home/git/data/backups/ | sort -r` do echo " ├ $b" done read -p "Select a backup to restore: " file - if [ ! -f "tmp/backups/${file}" ]; then + if [ ! -f "/home/git/data/backups/${file}" ]; then echo "Specified backup does not exist. Aborting..." return 1 fi