BUGFIX: export was broken, not exporting any tables
This commit is contained in:
parent
5a499b586f
commit
a30aaa90d5
|
@ -93,14 +93,15 @@ module Jobs
|
||||||
tar_filename = "#{@output_base_filename}.tar"
|
tar_filename = "#{@output_base_filename}.tar"
|
||||||
upload_directory = "uploads/" + RailsMultisite::ConnectionManagement.current_db
|
upload_directory = "uploads/" + RailsMultisite::ConnectionManagement.current_db
|
||||||
|
|
||||||
FileUtils.cd(File.dirname(filenames.first)) do
|
|
||||||
`tar cvf #{tar_filename} #{File.basename(filenames.first)}`
|
|
||||||
end
|
|
||||||
|
|
||||||
FileUtils.cd(File.join(Rails.root, 'public')) do
|
FileUtils.cd(File.join(Rails.root, 'public')) do
|
||||||
`tar cvf #{tar_filename} #{upload_directory}`
|
`tar cvf #{tar_filename} #{upload_directory}`
|
||||||
end
|
end
|
||||||
|
|
||||||
|
FileUtils.cd(File.dirname(filenames.first)) do
|
||||||
|
`tar --append --file=#{tar_filename} #{File.basename(filenames.first)}`
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
`gzip #{tar_filename}`
|
`gzip #{tar_filename}`
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue