I'm trying to creat a tar file from a .txt listing of files with full path/filename info.
Can't seem to to get correct syntax.
Any help would be appreciated.
Thanks. MOSSTW
If you are trying to create a tar file from a listing of files, the command is - tar cvfF <file> file.f - where the <file> is the destination file and the file.f is the text file containing the names of the files with full paths.
Thanks dbase77 and timsr...
I'm trying the suggestions now.
The syntax I was trying to work from is as follows which came from another web discussion but the tar line appears to only want to write to tape. I could not figure a method to write to filename.tar
find / -mtime -1 \! -type d -print > /backup/daily
tar -cv -T /backup/daily -f /dev/rft0
Awesome!
The following syntax did the trick!
$tar -cvf demo2.tar -I demo.txt
a ./Unity/POSGetInfo/build/Makefile.solaris 6K
a ./Unity/POSGetInfo/idl/atPOSGetInfo.idl 8K
Not sure if Solaris has some unique properties cause so many attempts didn't fly. The -I vs -T was an issue. This is going to help considerably with day-to-day deployments.
Thanks Feroz -
TMoss
BTW- I tried the follow suggestion, here's the results.
$tar -cvf demo2.tar 'cat demo.txt'
tar: cat demo.txt: No such file or directory
Thanks HeavyDman & everyone else.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.