- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Use of tar xvf and tar cvf
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
Discussions
Discussions
Discussions
Forums
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
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-09-2006 08:58 PM
тАО10-09-2006 08:58 PM
I am using HP-UX 11.11
I have some of my file test.tar tar in /opt directory.
Now i want to untar them into /var/test1 directory.
So should i use
tar xvf test.tar -C /var/test1
or how can i untar them so that the untared files go to var directory from /opt.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2006 09:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2006 09:18 PM
тАО10-09-2006 09:18 PM
Re: Use of tar xvf and tar cvf
I would also do a :
tar -tvf test.tar
just to check that no absolute path was used for the tar creation.
Telco,
please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
You profile shows 0 points awarded for 23 answers !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2006 11:36 PM
тАО10-09-2006 11:36 PM
Re: Use of tar xvf and tar cvf
it ONLY works if the tar file was created with relative pathes: './opt/...'.
You have to check it with 'tar tvf ...' or recreate the tar file with 'tar cvf
Aslo note that the path opt will be created too in your /var/test1 directory.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 01:13 AM
тАО10-10-2006 01:13 AM
Re: Use of tar xvf and tar cvf
the "tar c..." to create the archive.
Some output from "tar xvf test.tar" would be
helpful.
And where is "test.tar"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 02:34 AM
тАО10-10-2006 02:34 AM
Re: Use of tar xvf and tar cvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 05:25 AM
тАО10-10-2006 05:25 AM
Re: Use of tar xvf and tar cvf
> Some output from "tar xvf test.tar" would be
> helpful.
Make that:
Some output from "tar tvf test.tar" would be
helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 06:02 PM
тАО10-10-2006 06:02 PM
Re: Use of tar xvf and tar cvf
AS an addition to other precious replies;
KBRC00000197 [This document may be viewed by customers]
[This document has been certified]
Example backup/recover commands for fbackup, cpio, tar
Document Information Table
Example backup/recover commands for fbackup, cpio, tar
DocId: KBRC00000197 Updated: 1/3/00 8:52:22 AM
PROBLEM
The most frequently used commands for fbackup, cpio, tar.
** edited to comply with forum guidelines **
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 08:49 PM
тАО10-10-2006 08:49 PM
Re: Use of tar xvf and tar cvf
well now when i m untaring the files i m getting error
Directory chekcsum error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 09:04 PM
тАО10-10-2006 09:04 PM
Re: Use of tar xvf and tar cvf
can you please detail:
1. Exactly what command was used to create the tar file (I assume it was on the same machine)
2. What was the result of using tar -tvf test.tar
3. Is the same version of tar being used?
For same problem reports please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=419346
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=327706
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1047670
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2006 01:49 AM
тАО10-11-2006 01:49 AM
Re: Use of tar xvf and tar cvf
I see this most often when I'm not looking
at a real "tar" archive.
If you would show the actual commands you
use, with the actual input and output, it
might be easier to provide some more useful
answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2006 08:37 PM
тАО11-12-2006 08:37 PM
Re: Use of tar xvf and tar cvf
Maybe you are better off doing a tar pipeline
creating at source dir and extracting at target dir in one action, rather then first
creating a tar file.
change to /opt>
tar cf - . | (cd /var/test1; tar xvf - )
This means tar all files in current dir
and extract in target dir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2006 01:27 AM
тАО11-13-2006 01:27 AM
Re: Use of tar xvf and tar cvf
Bill Hassell, sysadmin