- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copy Files
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
03-16-2005 06:49 PM
03-16-2005 06:49 PM
Copy Files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 06:55 PM
03-16-2005 06:55 PM
Re: Copy Files
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 06:59 PM
03-16-2005 06:59 PM
Re: Copy Files
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 07:14 PM
03-16-2005 07:14 PM
Re: Copy Files
cd /new_dir
tar xvf old_dir.tar
but if the directory is small, the cp suggestion you've received is just as good.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 11:44 PM
03-16-2005 11:44 PM
Re: Copy Files
I prefer find/cpio for that task:
find . -print |cpio -pdvmux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 12:28 AM
03-17-2005 12:28 AM
Re: Copy Files
"mv"
mv OLDfolder NEWfolder
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 12:30 AM
03-17-2005 12:30 AM
Re: Copy Files
tar will work also.
the "cp" should NOT be used. If you have links the cp will follow the link and copy files NOT in the directory, but pointed to by the links.
1. cd /dir
find . -depth -xdev -print | cpio -pdum /newdir
where: /newdir already exists!
2. cd /fromdir
tar cf - . | (cd /todir; tar xf - )
C. NOTE: When copying, the copy seems to go faster when you have
"cleaned" off the target file systems. If data exists, he tries to
fit the new data in with the old (searching inode tables, etc.).
If the new file system is clean, he just writes the data out. Faster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 01:59 AM
03-17-2005 01:59 AM
Re: Copy Files
If it's filesytem based - vxdump is good as well:
vxdump -0 -f - -s 1000000 -b 16 /currentmount | (cd /newmount ; vxrestore rf -)
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 05:34 AM
03-17-2005 05:34 AM
Re: Copy Files
> the "cp" should NOT be used. If you have links the
> cp will follow the link and copy files NOT in the
> directory, but pointed to by the links.
From cp(1) manpage for option '-R', it says the
following:
...Symbolic links are copied so that the target points
to the same location that the source did.
I thought that's what the user wanted to do.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 10:29 AM
03-18-2005 10:29 AM
Re: Copy Files
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=837512&admit=716493758+1111188312291+28353475
You may also want to look at the attached file (in the same post), for alternatives.
Regards,
Alex