Solved

Copy directory betweeen Solaris 10 zones

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now