summaryrefslogtreecommitdiff
path: root/lib/backup/builds.rb
diff options
context:
space:
mode:
authorBalasankar "Balu" C <balasankar@gitlab.com>2018-03-05 13:55:02 +0530
committerBalasankar "Balu" C <balasankar@gitlab.com>2018-03-30 11:38:36 +0530
commit8785f237959a1e59fee8f628b76e476040848e24 (patch)
tree6becf45dd48e0ccc7fa45611af9376556637b2da /lib/backup/builds.rb
parent9b76d8512a5491202e5a953950cc815be9536648 (diff)
downloadgitlab-ce-8785f237959a1e59fee8f628b76e476040848e24.tar.gz
Move existing dirs to a temp location while restore
Instead of renaming existing storage directories to a timestamped format, create a timestamped directory in a temporary location and move the individual files and folders inside storage directories to it. This helps us with nested storage directories.
Diffstat (limited to 'lib/backup/builds.rb')
-rw-r--r--lib/backup/builds.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/backup/builds.rb b/lib/backup/builds.rb
index 635967f4bd4..f869916e199 100644
--- a/lib/backup/builds.rb
+++ b/lib/backup/builds.rb
@@ -5,9 +5,5 @@ module Backup
def initialize
super('builds', Settings.gitlab_ci.builds_path)
end
-
- def create_files_dir
- Dir.mkdir(app_files_dir, 0700)
- end
end
end