Linux: Excluding files based on extension and age with tar
If you are using tar to archive log files and find yourself needing to exclude certain extensions or older log files, tar can easily handle those type of situations. For example, to create a tar that excludes any rolled over logs that are zipped, use an ‘exclude’ like below: tar cvf mylogarchive.tar –exclude=*.gz –exclude=*.tgz * … Linux: Excluding files based on extension and age with tar