Skip to content
Snippets Groups Projects
Commit b6dadbae authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Add CI backup to preinstall task.

parent 8c63ab0d
No related branches found
No related tags found
1 merge request!374Gitlab CI backup
Loading
Loading
@@ -22,7 +22,16 @@ main() {
exit 1
fi
 
# Missing: GitLab CI backup
notify "Backing up GitLab CI SQL database"
if ! ${DEST_DIR}/bin/gitlab-ci-rake backup:create ; then
notify
notify "Backup failed! If you want to skip this backup, run the following command and"
notify "try again:"
notify
notify " sudo touch ${skip_migrations_file}"
notify
exit 1
fi
}
 
notify() {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment