- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: copy files from one system 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
03-21-2005 05:53 PM
03-21-2005 05:53 PM
I have a requirement to copy one 12 GB filesystem from one system to another.
System A HP-UX 11.00
Filesystem /abc/efg/ijk 12 GB
System B HP-UX 11.11
Filesystem /abc/efg/ijk
I want to create a single file of the files in the filesystem /abc/efg/ijk in system A which will also be compressed. ftp this file to System B and then uncompress and copy over the filesystem.
Thank you,
Sanjiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 05:58 PM
03-21-2005 05:58 PM
Re: copy files from one system to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 06:19 PM
03-21-2005 06:19 PM
Re: copy files from one system to another
Start nfs.* services.
sysA
exportfs -iv /abc/efg/ijk
sysb
mkdir /abc/efg/ijk
mount -v systemA:/abc/efg/ijk /abc/efg/ijk
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 07:10 PM
03-21-2005 07:10 PM
Re: copy files from one system to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 07:10 PM
03-21-2005 07:10 PM
Re: copy files from one system to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 07:27 PM
03-21-2005 07:27 PM
Re: copy files from one system to another
tar -cfv tmp.tar /tmp
gzip tmp.tar
Ftp the gzip file
in the remote system:
gzip -d tmp.tar.gz
tar -xvf tmp.tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 08:00 PM
03-21-2005 08:00 PM
Re: copy files from one system to another
Here some other way to do it;
1. scp (using ssh copy) - using compression mode to make your copy faster
scp -Cr /abc/efg/ijk remoteaccount>>@
here your are doing direct copy of your directory from SYMTEM A to your SYSTEM B directory
2. you can also do a gzip of your whole directory then ftp or scp or sftp it to SYSTEM B... then gunzip it to your directory
3. rcp (similar to scp if you dont use ssh)
4. using nfs ...as stated in previous threads
5. using tar then ftp to SYSTEM B then untar
all these you can also automate if you have several file systems to copy and do it simulteauosly
Hope these helps.
Jasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 01:02 AM
03-22-2005 01:02 AM
Re: copy files from one system to another
cd /sourcedir
tar cvf - . | compress | ssh destmachine " cd /targetdir | uncompress | tar xvf - "
*** You can use gzip where compress is***
If you don't want the compress commands..
tar cvf - . | ssh destmachine " cd /targetdir | tar xvf - "
Since you've got ssh setup... you can use rsync... it's slower (the first time) , but faster for resyncing (if that's a goal):
If on source machine...
rsync -avze ssh /sourcedir/ destmachine:/destdir/
If on destination machine...
rsync -avze ssh sourcemachine:/sourcedir/ /destdir/
Notes:
Search http://hpux.cs.utah.edu/ (The HPUX porting archive) to get rsync.
the "z" compresses the data on the fly
the "e" flag means external communication method (in this case ssh, as indicated)
the trailing "/" on the directory names *are important*.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 07:36 PM
03-22-2005 07:36 PM
Re: copy files from one system to another
Can I include "gzip" in the following command so that the output file becomes "ijk.cpio.gz in System A?
# find /abc/efg/ijk â print | cpio â Bodcm >/tmp/ijk.cpio
In System B
I would like to include the gunzip in the following command "input file will be ijk.cpio.gz" :
# cpio â Bidcm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 11:18 PM
03-22-2005 11:18 PM
Re: copy files from one system to another
Raje,
get GNU's tar, and use the built in gzip capabilities:
http://hpux.ee.ualberta.ca/hppd/hpux/Gnu/tar-1.15/
tar --gzip -cvf tarfilename.tgz [path]
then ftp it, then
tar --gunzip -xvf tarfilename.tgz
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2005 02:04 AM
03-23-2005 02:04 AM
Re: copy files from one system to another
tar -c /abc/efg/ijk | remsh sysB tar -x
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 12:59 AM
03-25-2005 12:59 AM
Re: copy files from one system to another
(It's in spanish, but i hope you could understand at least the commands, and most of the comments).
Hope it helps you,
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2005 01:58 PM
03-27-2005 01:58 PM
Re: copy files from one system to another
Can you help me to understand which command will give me the maximum compression?
gzip, compress, etc...or any other utility.
Can I further compress a file which is already compressed with "gzip" utility?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2005 02:32 PM
03-27-2005 02:32 PM
Re: copy files from one system to another
My solution:
1. If you have tape and tape driver. your should tar file to tape
at system A:
#tar -cvf /dev/rmt/0mn abc/efg/ijk
at system B:
#tar -xvf /abc/efg/ijk
2. If tape driver is not availble. you should use NFS.
at systemA:
- export this file
at system B:
- mount this file
that all
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2005 12:58 AM
03-28-2005 12:58 AM
Re: copy files from one system to another
Up to my knowledge tar can handle files only 8GB or below! May be there is new tar patch available now.
I think fbackup to tape, frecover to other system, would be suitable.
Regrds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2005 08:35 PM
03-28-2005 08:35 PM
Re: copy files from one system to another
check this thread (this is how I solved this
a while ago):
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=710793
This worked even with big files, without the
(nowadays silly) file size restrictions.
hth.
Regards,
Arnold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2005 08:43 PM
03-28-2005 08:43 PM
Re: copy files from one system to another
forgot that you were copying between different nodes.
So, if "remsh" is working in your configuration, it would look similar to
this:
src# cd /source
src# fbackup -f - -i . | remsh tgt 'cd /dest; frecover -rXf -'
where
Best Regards,
Arnold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 02:48 AM
03-29-2005 02:48 AM
Solution3 programs I use are compress, gzip and bzip2. Compress is installed with OS. 2 others are available as depot.
From lowest compression to higher :
. compress
. gzip
. bzip2
Said that, you may ask why use others if bzip2 compresses the best ? Answer cause the better you compress, the most time it takes.
For backup purposes, I compress my database exports. For the same export file, compress outputs à 8+GB file, gzip a 5GB file and bzip2 a 2.5GB file. Compress gives its in 2 hours, whereas gzip takes 4 hours and half and bzip2 more than 5 hours (They run in parrallel with export process).
So you may have to found what is the best for you from tests. Note that, as you want simultaneous compress/uncompress, bzip2 uncompresses very fast.
Other point gzip and bzip2 have options to increase and decrease compression level (and so time).
Regards,
Fre
"Reality is just a point of view." (P. K. D.)