1834925 Members
2499 Online
110071 Solutions
New Discussion

tar argument -F

 
SOLVED
Go to solution
Chris Vail
Honored Contributor

tar argument -F

It appears that the HPUX version of tar does not support the -F command as does Solaris and most of the other unixes with which I am familiar. In these the command:
tar cvfF /tmp/tarfile /tmp/filelist
would take a list of files to back up from the file /tmp/filelist and write them into /tmp/tarfile.

Without this argument, exactly how is one supposed to use tar to back up a BUNCH of files, save typing them in on a very, very long command line?

What alternatives are there?
1 REPLY 1
Sridhar Bhaskarla
Honored Contributor
Solution

Re: tar argument -F

Hi Chris,

It's easy. If /tmp/filelist has all the files listed, then you can use the command

tar cvf /tmp/tarfile `cat /tmp/filelist`

to backup all the files in /tmp/filelist.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try