- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restoring DDS tape backup to specific director...
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
12-19-2001 11:29 AM
12-19-2001 11:29 AM
I have tried the following:
1. find /dev/rmt/0m -depth -print | cpio -pvdu /oldsys
2. cpio -itB /dev/rmt/0m | cpio -pvdu /oldsys
3. chroot /oldsys cpio -iBvdu < /dev/rmt/0m
Number 1 above will not find anything on /dev/rmt/0m.
Number 2, the first cpio string when done by itself, "cpio -itB /dev/rmt/0m" will list out the files from the tape, but when i add the piped cpio, "cpio -pvdu /oldsys" it says it can't find any of the files on the tape. It appears to be looking at the output from cpio -itB and trying to find it on my platform to copy rather then copying it from the tape.
Number 3 above says it can't find cpio. so i then create a /oldsys/bin and copy /bin/cpio to /oldsys/bin/cpio and it still fails.
Is my syntax all wrong? Is there a better way to extract the tape contents?
Thank you for your time and help.
Colleen Wolfe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2001 11:39 AM
12-19-2001 11:39 AM
Re: Restoring DDS tape backup to specific directory
Hi,
Read this doc for Restoring cpio archive files to a absolute path.
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=231828321643852829/screen=ckiDisplayDocument?docId=200000006380242
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2001 11:40 AM
12-19-2001 11:40 AM
SolutionAlso have a look at this doc..
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=231828321643852829/screen=ckiDisplayDocument?docId=200000043255036
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2001 11:49 AM
12-19-2001 11:49 AM
Re: Restoring DDS tape backup to specific directory
U must use a wildcard to specify the filenames !
eg:
# find /data -depth -print | cpio -ovB > /dev/rmt/0m (for backup)
# cpio -iuvB /data/data1/* < /dev/rmt/0m
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2001 11:54 AM
12-19-2001 11:54 AM
Re: Restoring DDS tape backup to specific directory
Try this link,
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4e7b614f01234662cd/screen=ckiDisplayDocument?docId=200000048403550
hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2001 10:41 AM
12-20-2001 10:41 AM
Re: Restoring DDS tape backup to specific directory
1. made the following directories
/opt/oldsys
/opt/oldsys/bin
/opt/oldsys/bin/usr
/opt/oldsys/bin/lib
/opt/oldsys/dev
/opt/oldsys/dev/rmt
/opt/oldsys/usr
2. copied the following files to the appropriate oldsys directory:
/bin/sh
/usr/bin/cpio
/usr/bin/tpio
/usr/lib/dld.sl
/usr/lib/libc.2
/usr/lib/libdld.2
3. created copy of my tape drive:
mknod 0m c 205 0x033000
4. i cd'd to /opt/oldsys, then tried to run the following:
chroot /opt/oldsys /bin/sh
I recieved the following error:
# tcio -i /dev/rmt/0m | cpio -iBvdu
tcio(1013): cannot set tape options /dev/rmt/0m; errno 22
Can't open /dev/tty to prompt for more media.
So then i tried just to run
# cpio -iBvdu < /dev/rmt/0m
And this worked great!
Thanks so much.
Colleen Wolfe