From 8785f237959a1e59fee8f628b76e476040848e24 Mon Sep 17 00:00:00 2001 From: "Balasankar \"Balu\" C" Date: Mon, 5 Mar 2018 13:55:02 +0530 Subject: 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. --- lib/backup/builds.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/backup/builds.rb') 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 -- cgit v1.2.1