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(