mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
FIX: No need to list all the files.
This commit is contained in:
parent
e6fcaadd45
commit
8f36290c05
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user