- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Best way to copy a lot of 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
06-09-2004 07:59 PM
06-09-2004 07:59 PM
Which is the best way to do this?
I can't use pvmove (and I don't want use it).
I think it remains :
1) cpio
2) tar
3) fbackup
...
Thank You
Mauro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:13 PM
06-09-2004 08:13 PM
Re: Best way to copy a lot of files
Or the easist is create a soft link.
regards
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:14 PM
06-09-2004 08:14 PM
Re: Best way to copy a lot of files
# find /source | cpio -pcmud /copy
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:14 PM
06-09-2004 08:14 PM
Re: Best way to copy a lot of files
i go for cpio:
# cd /dir1
# find . -depth -print | cpio -pdum /dir2
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:47 PM
06-09-2004 08:47 PM
Re: Best way to copy a lot of files
I learned it from this forum which was one of the great findings for me
# cd /sourcedirectory
# find .|cpio -pudlmv /destinationdirectory
This moves the entire thing with permission to destination directory.
HTH
Siju Jose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:59 PM
06-09-2004 08:59 PM
Re: Best way to copy a lot of files
2. Verifying the backup taken with cpio & tar is not possible.
3. Finding a particular file in cpio/tar not very easy.
fbackup does not have above limitations. How about using plain mv command?
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 10:40 PM
06-09-2004 10:40 PM
Re: Best way to copy a lot of files
I prefer cpio always
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 10:48 PM
06-09-2004 10:48 PM
Re: Best way to copy a lot of files
WHY not use "cp" ??
cp -rp /dev/vg1/lv1/* /dev/vg2/lv2
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 10:50 PM
06-09-2004 10:50 PM
Re: Best way to copy a lot of files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 11:05 PM
06-09-2004 11:05 PM
Re: Best way to copy a lot of files
Thank You a lot.
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 11:09 PM
06-09-2004 11:09 PM
Re: Best way to copy a lot of files
or
cd /source;find . -name -depth -xdev -print|cpio -pxdm /destin
I would use any of the above, Infact i had lots of troubles using "cp"
Do u really want to move the data at physical layer ?. Or are you ok with the following
umount /dir1
umount /dir2
mount /dev/vg1/lv1 /dir2
:-)
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 11:10 PM
06-09-2004 11:10 PM
Re: Best way to copy a lot of files
Why send it to an archiver (cpio,tar,...) then unarchive it at it's destination? Which is why I suggest using cp.
If you plan on REMOVING /dev/vg1/lv1 (or the contents therein), then use "mv"
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 11:11 PM
06-09-2004 11:11 PM
Re: Best way to copy a lot of files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 12:36 AM
06-10-2004 12:36 AM
Re: Best way to copy a lot of files
vxdump -0 -f - -s 1000000 -b 16 /dir1 | (cd /dir2 ; vxrestore rf -)
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 12:42 AM
06-10-2004 12:42 AM
Re: Best way to copy a lot of files
in order to do it I used two times successfully the following command:
# cd /
# find . -xdev -print | cpio -pdmvux /
I suggest you to compare two directories at the end:
# diff /
Anyway all suggestions seem good, by now you have a lot of possibilities.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 01:15 AM
06-11-2004 01:15 AM
Re: Best way to copy a lot of files
umount /dir1
umount /dir2
dd if=/dev/vg1/rlv1 of=/dev/vg2/rlv2 bs=1024k
mount /dev/vg1/lv1 /dir1
mount /dev/vg2/lv2 /dir2
This should reproduce the entire filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 01:29 AM
06-11-2004 01:29 AM
Re: Best way to copy a lot of files
vxdump 0f - /
find . -depth | cpio -dumpv /
remote copy though ssh:
tar cf - . | ssh user@host "(cd
for local use i think the find way is the fastes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2006 10:45 AM
07-21-2006 10:45 AM
Re: Best way to copy a lot of files
Now try "cp src/* dst/". Notice that it crashes. The command line buffer is too small to handle the expansion of "*" to 30,000 file names.