Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
734fab8a
Commit
734fab8a
authored
Nov 07, 2017
by
digitalMoksha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show better message when deciding not to continue
parent
52bacf96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
lib/tasks/gitlab/backup.rake
lib/tasks/gitlab/backup.rake
+22
-17
No files found.
lib/tasks/gitlab/backup.rake
View file @
734fab8a
...
@@ -33,6 +33,7 @@ namespace :gitlab do
...
@@ -33,6 +33,7 @@ namespace :gitlab do
backup
.
unpack
backup
.
unpack
unless
backup
.
skipped?
(
'db'
)
unless
backup
.
skipped?
(
'db'
)
begin
unless
ENV
[
'force'
]
==
'yes'
unless
ENV
[
'force'
]
==
'yes'
warning
=
<<-
MSG
.
strip_heredoc
warning
=
<<-
MSG
.
strip_heredoc
Before restoring the database, we will remove all existing
Before restoring the database, we will remove all existing
...
@@ -51,6 +52,10 @@ namespace :gitlab do
...
@@ -51,6 +52,10 @@ namespace :gitlab do
Rake
::
Task
[
'gitlab:db:drop_tables'
].
invoke
Rake
::
Task
[
'gitlab:db:drop_tables'
].
invoke
$progress
.
puts
'done'
.
color
(
:green
)
$progress
.
puts
'done'
.
color
(
:green
)
Rake
::
Task
[
'gitlab:backup:db:restore'
].
invoke
Rake
::
Task
[
'gitlab:backup:db:restore'
].
invoke
rescue
Gitlab
::
TaskAbortedByUserError
puts
"Quitting..."
.
color
(
:red
)
exit
1
end
end
end
Rake
::
Task
[
'gitlab:backup:repo:restore'
].
invoke
unless
backup
.
skipped?
(
'repositories'
)
Rake
::
Task
[
'gitlab:backup:repo:restore'
].
invoke
unless
backup
.
skipped?
(
'repositories'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment