Solved

Copy directory betweeen Solaris 10 zones

Posted on 2009-04-10
4
1,726 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

786 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