HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

copy a number of directories

 
SOLVED
Go to solution
sreedhar2u
Frequent Advisor

copy a number of directories

Hi,

We have an issue on the HP-UX whereby we need to copy a number of directories from the India unix boxes to a box in LDN so that we can access the data via Windows.


We have a solution that use some automation in India to zip the files, and the copy them to LDN, and then unzip them again. The problem is this is taking 40 minutes for each high level dir, of which there are about 10-15.

The overall file size is not really an issue, ~12Mb un zipped, the problem is that there are 8,000 files across 936 dirs under the each high level dir we are copying.

Do we have anything at a systems level that could replicate a set of nominated folders, either in real-time or in a batch overnight? I thought it was worth an ask!

4 REPLIES
Pete Randall
Outstanding Contributor
Solution

Re: copy a number of directories

vishnu.khandare
Respected Contributor

Re: copy a number of directories

Hi Sreedhar,

Yes ur question is valid, u go for scp with -pr option by which u can copy multiple directories, for more details refer scp man page. rsync is also other good option.

Hope this solves ur qery.
Don't forget to assign points


Regards
Vishnu Khandare
You should deserve before U desire!!!!
Steven Schweda
Honored Contributor

Re: copy a number of directories

> [...] the HP-UX [...]

> [...] a box in LDN [...]

> [...] access the data via Windows.

Not very detailed descriptions of anything.

Are you copying the files from an HP-UX
system to a Windows system? If so, then why
not say that? If not, then what _are_ you
doing?

> [...] zip the files, and the copy them to
> LDN, and then unzip them again.

As usual, showing actual commands might be
more helpful than vague descriptions.

Are you using gzip, or Info-ZIP Zip, or what?

> [...] taking 40 minutes [...]

_What_, exactly, is taking the time? "zip
the files"? "copy them"? "unzip them"?

> Do we have anything [...]

Who is "we"? What fraction of the data
changes every day? A program like rsync is
especially useful if not everything changes.
If all your files change every day, then
rsync may offer little real advantage over
batch transfers. If your bottleneck is the
network link, and you're transferring all the
files every day, then it's not clear that
anything (other then better compression)
would help.
sreedhar2u
Frequent Advisor

Re: copy a number of directories

I am using robocopy