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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I tar files from a list?

Status
Not open for further replies.

nwo4life

Technical User
May 16, 2002
23
US
I am creating a list for files with
for file in 'find /spreadsheets/test/* -mtime +90'
do
Echo $file >> list
done
So know I need help archiving the list to tape.
 
tar cv `cat list` will work fine

mt rewind "to rewind the tape"

tar tv "to check the tape content"

EDC
 
ecasadella

How do I point to a specific tape drive? using
tar cv 'cat list'

Thanks
 
If you execute "tar cv" uses the default tape device, but if you want specifying it, it would be "tar cvf /dev/rmt/0" or the device you want to target, and then the list of files

EDC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top