Problem : tar exclude only log files

Problem : tar exclude only log files

i have to tar a dir and exclude only log files … Any suggestions?


 

Solution: tar exclude only log files

OK

From here http://ubuntuforums.org/showthread.php?t=240226

tar     cvpzf     backup.tgz       –exclude=’*.log’      folderiwanttobackup

Note the single quotation marks around the *.log

I think that’s it from a brief read.