- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Backing up/Restoring Files Using CPIO
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
04-10-2006 03:06 AM
04-10-2006 03:06 AM
Backing up/Restoring Files Using CPIO
I'm having a problem where some of the directories that were backed up using 'cpio -ovcBdum' appear in the backup output log, but I cannot see them in any of the tape listings that I made using 'cpio -ivtcB /dev/rmt/0mn'.
The one directory that I need to restore never appears when I try to do a listing using cpio.
Also, since it's been a long-long time since I've used cpio, I was wondering if the syntax that I need to use for my restore would be to cd to the restore directory, and then do:
"cpio -ivcBdum < /dev/rmt/0mn [restore_of_directory] . " (The "." would be to put the data into the current directory. Is that correct)?
Any help would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 03:36 AM
04-10-2006 03:36 AM
Re: Backing up/Restoring Files Using CPIO
find /
http://www.backupcentral.com/cpio-restore.html
check this for your query
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 03:44 AM
04-10-2006 03:44 AM
Re: Backing up/Restoring Files Using CPIO
fsf or bsf command of mt.
man mt
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 03:57 AM
04-10-2006 03:57 AM
Re: Backing up/Restoring Files Using CPIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 04:18 AM
04-10-2006 04:18 AM
Re: Backing up/Restoring Files Using CPIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 04:54 AM
04-10-2006 04:54 AM
Re: Backing up/Restoring Files Using CPIO
Create
cd /sourcedir
find . | cpio -oBdmvuxc > /dev/rmt/0m
Restore
cd /targetdir
cpio -iBdmvuxc < /dev/rmt/0m
In the above scenario, all of the files would be prepended with a "./", once you've got that, you know you can recover those files just about anywhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 04:54 AM
04-10-2006 04:54 AM
Re: Backing up/Restoring Files Using CPIO
So you need to specify a regular exporession to match the directory you want to be restored.
"." matches only a single character.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 04:59 AM
04-10-2006 04:59 AM
Re: Backing up/Restoring Files Using CPIO
if you use
cpio -ivcBdum < /dev/rmt/0mn [restore_of_directory] .
the dot does NOT mean, that the data is restored to '.' - this is always the case.
The dot in this context means just another pattern for the restore list and stands for itself.
If you want to restore 'olddir' to 'newdir', consider using 'pax' instead of 'cpio' - read the manpage, esp. option '-s'. However I must say, I never used this by myself.
mfG Peter