- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: recovering a single file
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
тАО12-31-2009 03:26 AM
тАО12-31-2009 03:26 AM
Re: recovering a single file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 03:38 AM
тАО12-31-2009 03:38 AM
Re: recovering a single file
read next thread:
Absolute path & Relative Path
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1262259430115+28353475&threadId=1050913
rgs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 03:48 AM
тАО12-31-2009 03:48 AM
Re: recovering a single file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 03:51 AM
тАО12-31-2009 03:51 AM
Re: recovering a single file
"tmp
# tar -xvf sysinfo.tar /home ioscan.txt"
Here ioscan.txt is extracting from sysinfo.tar to /tmp.It is fine.But why /home is there in command line?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 04:03 AM
тАО12-31-2009 04:03 AM
Re: recovering a single file
#
# pwd
/tmp
/tmp <-- working directory where is sysinfo.tar.
# tar -xvf sysinfo.tar /home ioscan.txt"
Here ioscan.txt is extracting from sysinfo.tar to /home.
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 04:10 AM
тАО12-31-2009 04:10 AM
Re: recovering a single file
/tmp
# ll ioscan*
ioscan* not found
-----------------
Ran command to extract ioscan.txt to /home
/tmp
# tar -xvf sysinfo.tar /home ioscan.txt
x ioscan.txt, 5231 bytes, 11 tape blocks
-----------------
BUT IN /home, ioscan.txt IS STILL NOT PRESENT
/home
# ll ioscan*
ioscan* not found
-----------------
INSTEAD IT GOT EXTRACT IN /TMP (FROM WHERE WE RAN "TAR -XVF" ABOVE)
/tmp
# ll ioscan*
-rw------- 1 root sys 5231 Dec 19 00:38 ioscan.txt
-----------------
So............
There are no optional arguments "destination" arguments like this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 04:17 AM
тАО12-31-2009 04:17 AM
Re: recovering a single file
From the link mentioned earlier in this thread:
"Absolute path means specifying the ENTIRE path to the directory you want to back up. When you restore this it will be restored to the SAME EXACT path."
If you back up individual directories using tar...you will be restoring it only in CURRENT directory (from where you are running 'tar -xvf").
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 06:07 AM
тАО12-31-2009 06:07 AM
Re: recovering a single file
> tar... [...]
"individual" has nothing to do with it. The
difference is between a path to a file (or
directory) which begins with a slash ("/")
and one which does not.
> Thanks.But here what /home means?
It's a mystery to me, too. Perhaps he still
thinks that his "
made some sense, which it did not.
> What tar is this? There are no optional
> arguments "destination" arguments like
> this.
Listen to Mr. Handly.
> To list files in TAR:
> # tar -tvf
That part makes some sense. If we could see
what it says for the file which you'd like to
restore, then you might get some more
specific suggestions on how to extract it
(and put it where you'd like it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 07:52 AM
тАО12-31-2009 07:52 AM
Re: recovering a single file
That was R.K.'s proof that he was wrong about a "destination" in tar.
>Steven: Perhaps he still thinks that his "
He probably should have said that he was admitting he made a mistake more clearly and the example was proof. I.e. add more comments in the script. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 05:05 PM
тАО12-31-2009 05:05 PM
Re: recovering a single file
MORE CLEARLY THIS TIME..
> But why /home is there in command line?
Presence of /home do NOT make any sense as there is NO option in tar command to specify
See my example above, which shows that even after specifying /home, the file 'ioscan.txt' got extracted in /tmp (from where we ran 'tar -xvf..').
> Perhaps he still thinks that his "
This is what I tried to explain with an example that
Hope I make it clear this time :-)