2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: No need to list all the files.

This commit is contained in:
Guo Xiang Tan 2016-09-16 11:00:37 +08:00
parent e6fcaadd45
commit 8f36290c05

View file

@ -358,7 +358,7 @@ module BackupRestore
end
def extract_uploads
if system("tar --list --file '#{@tar_filename}' 'uploads'")
if system('tar', '--exclude=*/*', '--list', '--file', @tar_filename, 'uploads')
log "Extracting uploads..."
FileUtils.cd(File.join(Rails.root, "public")) do
execute_command(