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
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
тАО04-14-2010 11:24 AM
тАО04-14-2010 11:24 AM
Thanks in advance.....
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 11:34 AM
тАО04-14-2010 11:34 AM
Re: tar !!!
http://docs.hp.com/en/B2355-90690/tar.1.html
See the examples in the manpage.
Rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 12:19 PM
тАО04-14-2010 12:19 PM
SolutionUse tar tvf to read the table of contents, at least a portion, so you can see how the files were saved. If the files have been saved with a leading /, this is called an absolute pathname and you'll have to use chroot to recover the files into a different directory structure.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 12:25 PM
тАО04-14-2010 12:25 PM
Re: tar !!!
> Bill: If the files have been saved with a leading /, this is called an absolute pathname and you'll have to use chroot to recover the files into a different directory structure.
Or use 'pax'. See the manpages.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 01:21 PM
тАО04-14-2010 01:21 PM
Re: tar !!!
Or use GNU "tar".
http://www.gnu.org/software/tar/
http://www.gnu.org/software/tar/manual/index.html
> I think there is a more complicated
> question here. [...]
There might be one somewhere, but it's not
here. As usual, it can be easier to give a
useful answer when the question contains some
useful information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 02:49 PM
тАО04-14-2010 02:49 PM
Re: tar !!!
example.
topaz:/dumps_10/pt_1204197284_chrishu # tar -tvf crash1.tar
rwxr-xr-x 0/0 0 Jun 8 15:20 2004 /var/adm/crash/crash.1/
rw-r--r-- 0/0 7300414 Jun 8 15:19 2004 /var/adm/crash/crash.1/vmunix.gz
[..]
Tar backup is taken with absolute path.
Contents of the tar archive needs to be restored relatively, to the directory /dumps_10/pt_1204197284_chrishu/ .
topaz:/dumps_10/pt_1204197284_chrishu # pax -r -f ./crash1.tar -s!/var/adm/crash/!./!gp -t
/var/adm/crash/crash.1/ >> ./crash.1/
/var/adm/crash/crash.1/vmunix.gz >> ./crash.1/vmunix.gz
/var/adm/crash/crash.1/image.1.1.gz >> ./crash.1/image.1.1.gz
/var/adm/crash/crash.1/image.1.2.gz >> ./crash.1/image.1.2.gz
/var/adm/crash/crash.1/image.1.3.gz >> ./crash.1/image.1.3.gz
/var/adm/crash/crash.1/image.1.4.gz >> ./crash.1/image.1.4.gz
/var/adm/crash/crash.1/image.1.5.gz >> ./crash.1/image.1.5.gz
/var/adm/crash/crash.1/image.1.6.gz >> ./crash.1/image.1.6.gz
/var/adm/crash/crash.1/image.1.7.gz >> ./crash.1/image.1.7.gz
/var/adm/crash/crash.1/INDEX >> ./crash.1/INDEX
topaz:/dumps_10/pt_1204197284_chrishu # cd crash.1
topaz:/dumps_10/pt_1204197284_chrishu/crash.1 # ll
total 104808
-rw-r--r-- 1 root sys 1225 Jun 8 15:20 INDEX
-rw-r--r-- 1 root sys 1252299 Jun 8 15:19 image.1.1.gz
-rw-r--r-- 1 root sys 1378576 Jun 8 15:20 image.1.2.gz
-rw-r--r-- 1 root sys 1438041 Jun 8 15:20 image.1.3.gz
-rw-r--r-- 1 root sys 1245761 Jun 8 15:20 image.1.4.gz
-rw-r--r-- 1 root sys 3595650 Jun 8 15:20 image.1.5.gz
-rw-r--r-- 1 root sys 16923559 Jun 8 15:20 image.1.6.gz
-rw-r--r-- 1 root sys 20516167 Jun 8 15:20 image.1.7.gz
But I agree, with the general remark, that most forumusers, asking a question, completely forget vital information, when asking a question, leaving the ones who respond, to guess, at what the real problem is...
To understand a question, normally the following info is needed..
>>>>>>
Operating System Version --
Hardware Model --
Problem Description (oneliner) --
Details --
storage :
Background question --
>>>>>>>
Greetz,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 06:49 PM
тАО04-14-2010 06:49 PM
Re: tar !!!
Ask a comprehensive question with crisp details - only then you would get crisp answers...Help Us and ofcourse yourself...
Anyways, a small eg --
if you wanted to copy /etc/lvmtab from the
tape /dev/rmt/0mn in IA64 using the default tar
simply -
tar xvf /dev/rmt/0mn etc/lvmtab
Note "/" is absent before etc
It copies to the dir you are in.
You can follow the same syntax as per your need...
And Points pls! :-) It makes us all happier to help
HTH
SNS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2010 06:15 AM
тАО04-15-2010 06:15 AM
Re: tar !!!
I am closing this thread