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
10-03-2006 04:20 AM
10-03-2006 04:20 AM
copy
I'm trying to copy a large data area from a nfs mount point to another directory.I use the command
cd to the source directory
find . -print |cpio -pdum target directory
to copy all the data's from the source to destination. But i would like to eliminate a particular directory (.directory) in this copy process.
Any suggestions ?
thanks so much in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 04:43 AM
10-03-2006 04:43 AM
Re: copy
find . -path "./dir_to_exclude/*" | cpio -pdum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 04:44 AM
10-03-2006 04:44 AM
Re: copy
Try
find ./* -print|cpio -pduml
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 04:49 AM
10-03-2006 04:49 AM
Re: copy
cd
find . ! -path "./dir_to_exclude/*" -type f | cpio -pdum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 06:56 AM
10-03-2006 06:56 AM
Re: copy
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 08:10 AM
10-03-2006 08:10 AM
Re: copy
i have tried the below syntax to copy all the dir/files recursively from a source directory and eliminate the particular directory "test" to the target directory. Please assist , is any thing wrong in this.
cd
Thank u so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 08:45 AM
10-03-2006 08:45 AM
Re: copy
But on the other hand .test is not that normal a name.
This would do it... even if it is a bit slow.
find ./ -depth | grep -v '\.test' | cpio -dump
I would not use NFS for this type of copy but ssh:
login to the nfs server and go to the source dir and do:
tar cf - . | ssh user@host "(cd
there