Linux-Noob Forums

Full Version: create tarball from input list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Hello all, noob here :-)

 

I am looking at creating a tar archive using a file list to specify the files to archive, I have looked through the man page and searched the internet and I can't find anything. Any ideas how I can do this?

 

Many thanks

 

Stephen


I believe the "-T" option allows you can specify a file containing a list of source objects:

 

tar -vf /tmp/archive.tar -T /tmp/file.list

 

Will that do?

 

Alternatively, script something that works through each file and uses the "-A" option to append to the .tar file.