HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to restore a directory
Operating System - HP-UX
1834163
Members
2705
Online
110064
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-30-2004 06:02 PM
11-30-2004 06:02 PM
how to restore a directory
How to restore a particular directory from DDS using tar command.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 06:14 PM
11-30-2004 06:14 PM
Re: how to restore a directory
tar -xvf /dev/rmt/0m
Sunil
Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 06:16 PM
11-30-2004 06:16 PM
Re: how to restore a directory
tar xvf yourtape yourdir
for example to restore /home/bob from DDS in /dev/rmt/0m, use this :
tar xvf /dev/rmt/0m /home/bob
If it doesn't succeed, there may be option used for backup on the tar comand, such as block size. Provide backup command here, and we will help finding restore one.
Regards,
Fred
for example to restore /home/bob from DDS in /dev/rmt/0m, use this :
tar xvf /dev/rmt/0m /home/bob
If it doesn't succeed, there may be option used for backup on the tar comand, such as block size. Provide backup command here, and we will help finding restore one.
Regards,
Fred
--
"Reality is just a point of view." (P. K. D.)
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 02:24 AM
12-01-2004 02:24 AM
Re: how to restore a directory
You need to determine if the tar save was done relative or absolute file paths.
tar tvf /dev/rmt/0m
will display the contents of the tape. If the path names begin with "/", then it is an absolute path and when you restore it, it will be placed back to its orginal place. You can override this by either using "pax" or gnu tar.
Whether it is an absolute or relative backup, just specify the directory you wish to restore in the same way as the paths are displayed by the above command.
eg-
tar xf /dev/rmt/0m /usr/bin
tar xf /dev/rmt/0m ./usr/bin
tar xf /dev/rmt/0m usr/bin
Even though it is the same directory above, the backup tape was created in 3 different ways.
tar cf /dev/rmt/0m /usr/bin
cd /
tar cf /dev/rmt/0m .
tar cf /dev/rmt/0m usr
HTH
-- Rod Hills
tar tvf /dev/rmt/0m
will display the contents of the tape. If the path names begin with "/", then it is an absolute path and when you restore it, it will be placed back to its orginal place. You can override this by either using "pax" or gnu tar.
Whether it is an absolute or relative backup, just specify the directory you wish to restore in the same way as the paths are displayed by the above command.
eg-
tar xf /dev/rmt/0m /usr/bin
tar xf /dev/rmt/0m ./usr/bin
tar xf /dev/rmt/0m usr/bin
Even though it is the same directory above, the backup tape was created in 3 different ways.
tar cf /dev/rmt/0m /usr/bin
cd /
tar cf /dev/rmt/0m .
tar cf /dev/rmt/0m usr
HTH
-- Rod Hills
There be dragons...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP