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

Tar command 1

Status
Not open for further replies.

jpernia

Technical User
Mar 29, 2002
35
US
Hi , how i can list the files into the tape with tar.
 
tar Command
Traditional UNIX tape archive command
Generate a tar backup: tar -cvf device files
- Can generate a tar file as well as tapes or diskettes
- Backs up files and directory trees
#tar -cvf /dev/rmt0.3 /home
Restore from a tar backup: - Restores individual files, directories, or all
- Retains owner and group if issued by root
#tar -xvf /dev/rmt0 /home/team01/mydir
List contents of a tar backup: - Operates as tar -x but doesn't create files
#tar -tvf /dev/rmt0

Tar: tar -cvf /dev/rmt0 /home/myfiles

Restore TAR:
tar -xvf /dev/rmt0 /home/team01/mydir

List Contents of Tar:
tar -tvf /dev/rmt0

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top