From 38d9632d8c691a4f4399ffbccb6a93ef2115520e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bourr=C3=A9?= Date: Tue, 25 Dec 2018 20:31:52 +0100 Subject: [PATCH] fix restore --- scripts/restore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/restore b/scripts/restore index b5424b0..daf9b31 100644 --- a/scripts/restore +++ b/scripts/restore @@ -75,6 +75,7 @@ ynh_restore_file "/var/opt/$app/backups/" fullfile=$(ls /var/opt/gitlab/backups/*_gitlab* --file -c1 | head -1) basename="/var/opt/gitlab/backups/" +filename=$(basename -- "$fullfile") last_backup="${filename%_gitlab_backup.tar}" # Use gitlab-rake to backup