Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar with showing data simoultanous

Status
Not open for further replies.

gerhard1610

Technical User
Dec 5, 2002
16
DE
Hey everyone,
i just want to backup data with tar. I know it works with:
tar cvf. To show which data i have saved i can use tar tvf. But how can i do it simoultanous, that unix not first has to save my data to disk and after that read the data again to show me the list of my saved data?
Please help!!!!

 
The v option to tar is verbose, and prints everything to your screen. You should be able to capture this be redirecting the output to a file with a

> filename

at the end of your tar command. Note that this doesn't verify that the data has been saved correctly and can be read back, whereas tar tvf does tend to indicate that it has. HTH.
 
Hi Gerhard,
perhaps I do not understand your question, but
when you use
tar cvf <archive> <files>
tar will show all the files that it writes to archive.
Regards Boris
 
i want Unix to write a list of the data which it backups to tape to a file. And i want Unix to do this simoultanouse to the tar archive prozess
 
Hi Gerhard,
you can do:
$ tar cvf /dev/rmt0 <files> | tee ListOfTar
In this case tar writes list of writting data on
the screen and in file ListOfTar
Boris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top