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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
7d14b725
Commit
7d14b725
authored
Jun 25, 2018
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move repo backup RPC's to opt-out
parent
7a99a8c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/backup/repository.rb
lib/backup/repository.rb
+4
-4
No files found.
lib/backup/repository.rb
View file @
7d14b725
...
@@ -48,7 +48,7 @@ module Backup
...
@@ -48,7 +48,7 @@ module Backup
end
end
def
backup_project
(
project
)
def
backup_project
(
project
)
gitaly_migrate
(
:repository_backup
)
do
|
is_enabled
|
gitaly_migrate
(
:repository_backup
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
if
is_enabled
backup_project_gitaly
(
project
)
backup_project_gitaly
(
project
)
else
else
...
@@ -80,7 +80,7 @@ module Backup
...
@@ -80,7 +80,7 @@ module Backup
end
end
def
delete_all_repositories
(
name
,
repository_storage
)
def
delete_all_repositories
(
name
,
repository_storage
)
gitaly_migrate
(
:delete_all_repositories
)
do
|
is_enabled
|
gitaly_migrate
(
:delete_all_repositories
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
if
is_enabled
Gitlab
::
GitalyClient
::
StorageService
.
new
(
name
).
delete_all_repositories
Gitlab
::
GitalyClient
::
StorageService
.
new
(
name
).
delete_all_repositories
else
else
...
@@ -148,7 +148,7 @@ module Backup
...
@@ -148,7 +148,7 @@ module Backup
end
end
def
backup_custom_hooks
(
project
)
def
backup_custom_hooks
(
project
)
gitaly_migrate
(
:backup_custom_hooks
)
do
|
is_enabled
|
gitaly_migrate
(
:backup_custom_hooks
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
if
is_enabled
gitaly_backup_custom_hooks
(
project
)
gitaly_backup_custom_hooks
(
project
)
else
else
...
@@ -159,7 +159,7 @@ module Backup
...
@@ -159,7 +159,7 @@ module Backup
def
restore_custom_hooks
(
project
)
def
restore_custom_hooks
(
project
)
in_path
(
path_to_tars
(
project
))
do
|
dir
|
in_path
(
path_to_tars
(
project
))
do
|
dir
|
gitaly_migrate
(
:restore_custom_hooks
)
do
|
is_enabled
|
gitaly_migrate
(
:restore_custom_hooks
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
if
is_enabled
gitaly_restore_custom_hooks
(
project
,
dir
)
gitaly_restore_custom_hooks
(
project
,
dir
)
else
else
...
...
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