Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
create tarball from input list
#1

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

Reply
#2

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.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)