mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-30 07:53:57 -04:00
BUFGIX: we should have uploads in the backup
This commit is contained in:
parent
6f6a8c3f1b
commit
f81680d5c7
1 changed files with 3 additions and 7 deletions
|
@ -235,13 +235,9 @@ module Export
|
||||||
|
|
||||||
upload_directory = "uploads/" + @current_db
|
upload_directory = "uploads/" + @current_db
|
||||||
|
|
||||||
if Dir[upload_directory].present?
|
log "Archiving uploads..."
|
||||||
|
FileUtils.cd(File.join(Rails.root, "public")) do
|
||||||
log "Archiving uploads..."
|
`tar --append --file #{tar_filename} #{upload_directory}`
|
||||||
FileUtils.cd(File.join(Rails.root, "public")) do
|
|
||||||
`tar --append --file #{tar_filename} #{upload_directory}`
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
log "Gzipping archive..."
|
log "Gzipping archive..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue