- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- backup command
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
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
тАО03-19-2009 01:59 AM
тАО03-19-2009 01:59 AM
backup command
I would like to use cpio command , I tried to see the man page of cpio , but still can't get help ( I really headache with it )
can adivse if I want to backup , list and restore file from and to the tape , how to do it ? besides , if I want to extract a specific directory from the tape ( not all files in the tape , only restore a directory ) , what can i do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 02:16 AM
тАО03-19-2009 02:16 AM
Re: backup command
Copy the old data to new mountpoint
# cd /home/eem.old
# find . -xdev -print | cpio -pdmuxl /home/eem
can try as below ,
#cpio -pdmuxl file.tar /dev/rmt/0m
Hope this helps,
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 02:18 AM
тАО03-19-2009 02:18 AM
Re: backup command
# find . -print |cpio -ocBv /dev/rmt/0m
to list
# cpio -itcvB < /dev/rmt/0m
extract
# cpio -icvdBum file < /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 02:32 AM
тАО03-19-2009 02:32 AM
Re: backup command
You can use this command to take backup.
Go the required directory
#ls | cpio -o > /dev/rmt/0m
To restore from the tape use the following command
#cpio -i < /dev/rmt/0m
Rgds
Bijeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 02:53 AM
тАО03-19-2009 02:53 AM
Re: backup command
I have problem to extract files,
I use cpio -i dev/cciss < /dev/rmt/0m , it pops
cpio: read error: Cannot allocate memory
i use cpio -icvdBum home/edp < /dev/rmt/0m ( to restore the directory /home/edp to local directory ) but it only create home/edp to local directory , this directory is empty , can advise is wrong ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 03:06 AM
тАО03-19-2009 03:06 AM
Re: backup command
cpio -itcvB < /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 04:08 AM
тАО03-19-2009 04:08 AM
Re: backup command
The command tar is also available and more common. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 05:34 PM
тАО03-19-2009 05:34 PM
Re: backup command
i also don't want to use cpio , but the command used in our company for long time , i can't change it ...
cpio -itcvB < /dev/rmt/0m is ok to list fies , now I would like to restore files from the tape , I use the below command but still not work , can advise what can i do ? thx
cpio -i dev/cciss < /dev/rmt/0m
cpio -icvdBum home/edp < /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 06:36 PM
тАО03-19-2009 06:36 PM
Re: backup command
Then don't, use a more rational command. You can use pax(1). And then add "-x cpio".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 06:48 PM
тАО03-19-2009 06:48 PM
Re: backup command
pax -f /dev/rmt/0m -v
>restore files from the tape, I use the below command but still not work
pax -f /dev/rmt/0m -r -v dev/cciss