mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
restore: extract timestamp from backup filename using bash builtins
This commit is contained in:
parent
050960b20e
commit
78aa32279f
@ -1136,7 +1136,8 @@ execute_raketask() {
|
||||
echo "Specified backup does not exist. Aborting..."
|
||||
return 1
|
||||
fi
|
||||
BACKUP=$(echo $file | cut -d'_' -f1)
|
||||
|
||||
BACKUP=${file%%_gitlab_backup.tar}
|
||||
fi
|
||||
elif [[ ${1} == gitlab:import:repos ]]; then
|
||||
# sanitize the datadir to avoid permission issues
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user