restore: extract timestamp from backup filename using bash builtins

This commit is contained in:
Sameer Naik 2015-12-28 21:13:07 +05:30
parent 050960b20e
commit 78aa32279f

View File

@ -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