Find all files with ‘.log’ extention and make an bzip archive
find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2
This entry was posted on Tuesday, September 16th, 2008 at 11:48 pm and is filed under Command Line, Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Name (required)
Mail (will not be published) (required)
Website
Notify me of followup comments via e-mail