- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copyinmg files from one filesystem to another
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-07-2005 12:58 AM
01-07-2005 12:58 AM
I would like to copy files from one filesystem to another. i'm using the below command
#find . -depth -print | cpio -pdlmuv newdir
but i'm facing problem with the link files. file timestamp is updating with the current date. even the source and dest. directories sizes are mismatching. I'm not facing any problem with other directories time stamps and owner permissions.
Can anybody suggest me a better way to do this activity?
Thanks,
Madhu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 01:07 AM
01-07-2005 01:07 AM
Re: Copyinmg files from one filesystem to another
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 01:13 AM
01-07-2005 01:13 AM
Re: Copyinmg files from one filesystem to another
any suggestions please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 01:20 AM
01-07-2005 01:20 AM
Solutioncpio only preserves time stamps of all except link files and directories - the man pages should be clear on that.
If you want everyting to be "preserved" use vxdump/vxrestore:
vxdump 0f - /sourcefs| (cd /targetfs;vxrestore rf -)
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 01:25 AM
01-07-2005 01:25 AM
Re: Copyinmg files from one filesystem to another
Tha's Great... I didn't get that thought. This seems to be suitable command for my situation. get back to you, if i get any problems.
Thanks........ Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 01:28 AM
01-07-2005 01:28 AM
Re: Copyinmg files from one filesystem to another
Forget not to clean your target Filesystem -- either rm -r /tgtfilesys/* [except lost+found) or unmount the tgtfilesystem and mkfs ..
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 02:07 AM
01-07-2005 02:07 AM
Re: Copyinmg files from one filesystem to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 08:20 PM
07-13-2005 08:20 PM
Re: Copyinmg files from one filesystem to another
hi madhu,
how did u used the vxdump and vxrestore..
does it copied the link files also ???
pls tell me the syntax,
assume i want to copy filesystem /d03 to /snapd03
regards,
sivakumar p.