- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Retoring files from tape in UNIX HP-UX 11
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
05-30-2002 10:52 AM
05-30-2002 10:52 AM
Can anybody please give me the steps to restore them.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 10:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 10:58 AM
05-30-2002 10:58 AM
Re: Retoring files from tape in UNIX HP-UX 11
Well,
It depends on How did you take backup,
tar is one of the most common utility.
tar -xvf device name would restore file.
But there are many other ways to backup and restore.
fbackup/frecover, ftio, cpio, dd are few of them
Let forum knwo how you took backup first.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:01 AM
05-30-2002 11:01 AM
Re: Retoring files from tape in UNIX HP-UX 11
As already indicated, you first need to specify the backup utility used ('tar', 'cpio', 'fbackup', etc.).
Having said that, since SAM uses 'fbackup', to recover a file from one of its tapes, you use 'frecover'.
For example:
# /usr/sbin/frecover ???mov ???f /dev/rmt/0m ???x ???i /etc/hosts
This would recover the /etc/hosts file.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:03 AM
05-30-2002 11:03 AM
Re: Retoring files from tape in UNIX HP-UX 11
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:05 AM
05-30-2002 11:05 AM
Re: Retoring files from tape in UNIX HP-UX 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:09 AM
05-30-2002 11:09 AM
Re: Retoring files from tape in UNIX HP-UX 11
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:10 AM
05-30-2002 11:10 AM
Re: Retoring files from tape in UNIX HP-UX 11
Try using tar tvf /dev/rmt/0m and look at the contents of the tape , if you see the file you want then may be you can restore it baack .
Also if you have used the absolute path then I woul suggest you to move the present direcorty to some other name as restoring the files would overwrite the exisiting files too.
tar xvf /dev/rmt/0m is to restore the files fromt eh tape.
Do a man tar to know waht you want to .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:14 AM
05-30-2002 11:14 AM
Re: Retoring files from tape in UNIX HP-UX 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:17 AM
05-30-2002 11:17 AM
Re: Retoring files from tape in UNIX HP-UX 11
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:20 AM
05-30-2002 11:20 AM
Re: Retoring files from tape in UNIX HP-UX 11
1) Absolute path - when taking backups, if you 've used absolute path ( starting from root - /opt/appl), then while restoring it will put the files in original location.
2) Relative path - when taking backup if you have used relative path ( starting from current directory - ./opt/appl), then you can first change the directory to the destination, then restore the file to the current one.
This is the command:
# tar -xvf device_name
eg:
# cd /tmp
# tar -xvf /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:30 AM
05-30-2002 11:30 AM
Re: Retoring files from tape in UNIX HP-UX 11
tar xvf /dev/rmt/0mn file1 file2 ... etc.
Also, you might want to do a tar tvf /dev/rmt/0m which will give you a table of contents for the archive...so you can see what's in the archive before you try to restore files.
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:31 AM
05-30-2002 11:31 AM
Re: Retoring files from tape in UNIX HP-UX 11
tar -xf
where filename is exactly the same name as tar reports when you run tar -tvf
The name will depend as others stated on whether or not you used full or relative pathnames when you wrote the tar tape but something like:
tar -tvf
should tell you what you should supply as
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:38 AM
05-30-2002 11:38 AM
Re: Retoring files from tape in UNIX HP-UX 11
# man pax (for details)
Also see this thread and find Patrick's answer for a better explanation on this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x835a50011d20d6118ff40090279cd0f9,00.html