- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to use tar command?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 01:35 PM
10-31-2004 01:35 PM
how to use tar command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 01:45 PM
10-31-2004 01:45 PM
Re: how to use tar command?
# man tar
Example: If you want to store the contents of /dir1 onto tape with relative path and your tape is /dev/rmt/0m
# cd /
# tar -cvf /dev/rmt/0m ./dir1
or
# cd /dir1
# tar -cvf /dev/rmt/0m .
There is a space AFTER the 0m and before the . in each command above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 04:44 PM
10-31-2004 04:44 PM
Re: how to use tar command?
# tar cvf
Hope that calrifies.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 05:36 PM
10-31-2004 05:36 PM
Re: how to use tar command?
man tar
Can go to this link:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90690/B2355-90690_top.html&con=/hpux/onlinedocs/B2355-90690/00/01/148-con.html&toc=/hpux/onlinedocs/B2355-90690/00/01/148-toc.html&searchterms=tar&queryid=20041031-205509
It will show you how to use and give you some example.
For example: to backup my home directory to tape (ioscan -fnC tape)
# tar -cvf /dev/rmt/0m /usr/home/jimkery
Hope this helps
Jimkery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 08:16 PM
10-31-2004 08:16 PM
Re: how to use tar command?
the guide line for using tar :
tar cvf - to backup files to a tar or to a tape
tar xvf - to extract files
tar tvf - to see that files in the tar file.
use this and every time that you dont know how to put the direcotry or get confuse open the man pages on tar .
eran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 02:08 AM
11-01-2004 02:08 AM
Re: how to use tar command?
Man tar - get more information about the tar command
tar cvf /dev/rmt/0m (tape device) /etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 01:42 PM
11-01-2004 01:42 PM
Re: how to use tar command?
# tar cvf /dev/rmt/0m /
To store a particular directory:
# tar cv /tmp ( for default device )
# tar cvf /dev/rmt/1m /tmp (specify device)
To recover a particular directory:
# tar xvf /dev/rmt/0m /tmp
To see what's actually on the tape without restoring or extracting:
# tar tvf /dev/rmt/0m
To recover a particular FILE:
# tar xvf /dev/rmt/1m /path/filename (will only recover full path)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 11:29 PM
11-01-2004 11:29 PM
Re: how to use tar command?
tar -tvf is to diplay the content of the tape
tar -xvf is to extract the tape contents
further clarifications see man page of tar
regards
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 09:54 AM
11-02-2004 09:54 AM