How to Copy Folder from one solaris machine to another?


 
Thread Tools Search this Thread
Operating Systems Solaris How to Copy Folder from one solaris machine to another?
# 1  
Old 07-17-2008
How to Copy Folder from one solaris machine to another?

Hi All,

Can any body help for below query......

How to Copy Folder from one solaris machine to another?

Thanks,
# 2  
Old 07-17-2008
One method you could do is to compress the folder and transfer. Then, uncompress.
tar cvf testdir.tar /tmp/tesdir
scp testdir.tar user@dest_hostname:/somedir/

then login to dest_hostname, cd to /somedir and perform
tar xvf testdir.tar
# 3  
Old 07-17-2008
servername

hi,
what is the command for know the servername ?
help me.
thank Smilieyou
# 4  
Old 07-17-2008
do you mean hostname?
# 5  
Old 07-17-2008
you have to login to that server and type "hostname"
or from ur current system, simply do a "nslookup <IP of that server>"Smilie
# 6  
Old 07-21-2008
Hi,

You can use the commande "rcp" :

root# rcp -p <server>:/tmp/sourcedirectory /tmp/targetdirectory

<server> : is name of your machine, and the name of the machine should be declared on /etc/hosts.

the path: /tmp/.... is just an example

Thx.
# 7  
Old 07-22-2008
ftp or scp could also do it.

a million ways to do the same thing. hehehe Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Trying to share a folder between windows machine and VM

I was following the guide I found here for doing this and I reached the step where I added myself to the vboxsf group but I am still getting a permissions denied message when I try to get into the folder: ubuntu12@ubuntu12-VirtualBox: /media$ cd sf_Shared_files/ bash: cd: sf_Shared_files/:... (0 Replies)
Discussion started by: Circuits
0 Replies

2. Shell Programming and Scripting

How to copy files with the same filenames as those in another folder to that same folder?

Hello All A similar question like this was asked before but I need to change part of the question. I've two folders, Folder A contains some image files in 150 subfolders; Folder B contains text files in 350 subfolders. All image files in Folder A have the same filename as the text... (5 Replies)
Discussion started by: chlade
5 Replies

3. Shell Programming and Scripting

copy folder and its contents to another folder

Hi experts, I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script. This is my requirement. I have a folder AB under /users/myhome I want to copy AB and its contents to /user/workspace. Finally it should... (1 Reply)
Discussion started by: amvarma77
1 Replies

4. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

5. IP Networking

RSH to Ubuntu machine from Solaris machine?

This is probably really basic compared to what you guys are usually talking about here, but I have a problem and I have no idea what to do about it. I try to RSH to my Ubuntu computer from my Solaris one and run into a dead end: >> rsh 192.168.1.103 ::ffff:192.168.1.103: Connection timed out... (4 Replies)
Discussion started by: Bradj47
4 Replies

6. Shell Programming and Scripting

Unzip folder on remote machine

Hi ! I am trying to automate FTP transfer of some folders from one unix machine (a) to another one (b). I run my shell script on machine a. The problem I face is how to unzip the folder at the machine b with script run in machine a. My first question: Is there any way to do this ? My... (10 Replies)
Discussion started by: siba
10 Replies

7. Shell Programming and Scripting

Find all text files in folder and then copy to a new folder

Hi all, *I use Uwin and Cygwin emulator. I´m trying to search for all text files in the current folder (C/Files) and its sub folders using find -depth -name "*.txt" The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies

8. Solaris

Best possible communication mechanism between a Solaris machine and a windows machine

hi, I have some windows client machines which require a signal to be sent by a Solaris machine( SunOS 5.6) when ever a particular event occurs on that Solaris machine. What are possible communication mechanisms by which i can do this. the constraints are > the windows machines have to... (7 Replies)
Discussion started by: Krsh
7 Replies

9. UNIX for Advanced & Expert Users

Auto copy for files from folder to folder upon instant writing

Hello all, I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written. I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies

10. UNIX for Dummies Questions & Answers

how to copy/move folder on XP to Solaris?

I have created a folder on C:\images\Raffles.jpg on my PC, and I like to copy or move to Solaris server. How can I do that? Please advise. Thanks in advance. (2 Replies)
Discussion started by: simt
2 Replies
Login or Register to Ask a Question