- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio 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
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
01-05-2001 07:25 AM
01-05-2001 07:25 AM
from old disk to new disk using cpio command. what options will facilitates copying entire directory tree from old PV to new VG.
Iam not acquainted with cpio, but i think this is what i need in other to move datas from the old PV to the new volume groups.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2001 03:19 PM
01-05-2001 03:19 PM
SolutionI would think you would want to use -odmv, and the syntax would be:
find . -depth -print | cpio -odmv > newdisk
the o means output, d means create directories as needed, m means retain mod time, and v is verbose.
HTH
Mo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2001 03:33 PM
01-05-2001 03:33 PM
Re: cpio command
I would think you would want to use -pdmv, and the syntax would be:
find . -depth -print | cpio -pdmv newdisk
the p means passthrough, d means create directories as needed, m means retain mod time, and v is verbose.
HTH
Mo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2001 07:24 AM
01-06-2001 07:24 AM
Re: cpio command
cd
find . -xdev -print | cpio -pdvum
If you want a whole filesystem to be copied,
The -xdev flag will prevent find from crossing filesystem boundaries so that you could find files under / but not files under /usr, /tmp, /var, etc...
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2001 11:39 AM
01-06-2001 11:39 AM
Re: cpio command
Copy over the entire original stand directory to the /stand.tmp(new mount point)
directory.
# cd /stand
# find . -xdev -depth -print | cpio -pxdumv /stand.tmp
Good Luck