Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Copy directory betweeen Solaris 10 zones

Posted on 2009-04-10
4
1,735 Views
Last Modified: 2012-05-06
I have a Solaris 10 box with 3 zones. I want to sftp the certificate keystore file between zones.

Before hand I logged onto Zone1 and :___ to the keystore directory
    chmod -R 777 keystore
    chown -R sysadmin keystore

then logged into Zone2 as sysadmin and opened terminal
   su
    #sftp sysadmin@zone1(FQDN)
entered PW
    get keystore
result:  Cannot download directory

I am MCSE by trade and fumble thru Unix. To top it off and make it even worse I am dealing with Solaris 10 which I find theres not any good ref books on using it that I have found.
0
Comment
Question by:need4answers
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 24115691
sftp is not meant for dir transfer, use scp -r

scp -r username@remotesystem:/path/to/remdir /path/to/local
0
 

Author Closing Comment

by:need4answers
ID: 31568888
Worked great. You should write a book, Ive been looking for the answer for past 2 days.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24116119
I can write a book, but where is the sponsor :)
0
 
LVL 48

Expert Comment

by:Tintin
ID: 24119529
If you have access to the global zone, you can do a simple cp to each of the zones.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question