|
|
|
@ -155,7 +155,7 @@ class BackupJob < ::ApplicationJob |
|
|
|
|
|
|
|
|
|
zipfile.add "attachment/file/#{attachment.id}/#{attachment[:file]}", path |
|
|
|
|
|
|
|
|
|
paths_to_clean << get_cache_folder_path(attachment) if clean_up && a.file.cached? |
|
|
|
|
paths_to_clean << get_cache_folder_path(attachment) if clean_up && attachment.file.cached? |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
zipfile.get_output_stream("openproject.sql") { |f| f.write File.read(db_dump_file_name) } |
|
|
|
|