gitlab-org--gitlab-foss/lib/backup/uploads.rb
Balasankar "Balu" C 8785f23795 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.
2018-03-30 11:38:36 +05:30

9 lines
157 B
Ruby

require 'backup/files'
module Backup
class Uploads < Files
def initialize
super('uploads', Rails.root.join('public/uploads'))
end
end
end