Using this command when want to tar everything in a folder except some of the files (binary files) # tar -cjvf ../packed_no_bin.tar.bz2 * --exclude=*.gz --exclude=*.bin --exclude=*.rpm if there's another file type that didn't want to tar just put another --exclude=<pattern>