8785f23795
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.
9 lines
157 B
Ruby
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
|