Archive all files with a given extension
Tagged with: bzip2, compress, extension, find, log, tar
Tuesday, September 16th, 2008 11:48 PM
Find all files with ‘.log’ extention and make an bzip archive
find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2