Jump to content

most compression programs allow you to specify a list of files you want to include

So you can make your list of files with just the extensions you want , or the file names you want, or whatever other filtering you think of (size under x bytes, last modified n days ago etc) , dump it to a text file and then give your tar program the file list as parameter ... something like 

7zip a -ttar archive.tar @c:\filelist.txt

 

7zip also has command line parameters to exclude stuff 

 

-x[r[-|0]]{@listfile|!wildcard} : eXclude filenames

 

Quote

7z a -tzip archive.zip *.txt -x!temp.*

adds to the archive.zip all *.txt files, except temp.* files.


7z a archive.7z Folder1\ -xr!*.png

adds to the archive.7z all files from Folder1 and its subfolders, except *.png files.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×