Well i dont have alot of experience in shell scripting. I am mostly into OOP. So i was given a task to
"Transfer the contents of files in a zip format from one unix server to another unix server"
What i am trying to do is create a shell script when runs will transfer all the files in zip format from one unix directory to another unix server directory. How can i do that?
I've searched on google and most of the time they used " scp " command. I am not at work but i tried using something like this:
But unfortunately my script is not working. Any clues how can i acheieve this?
Actually that might be correct for only one file command. What i am trying to do is that:-
I have bunch of files in one unix directory. The name of that unix server is ABC. /user/web/abc.com/props. This is the path to my unix directory. in the props folder i might have 30 files(html, txt, etc).
I have another unix server XYZ. What i am trying to do is transfer all the contents of props directory from ABC unix server to XYZ unix server in a zip file format.
Your code might work for one file but i have 30 files which i need to bundle into zip folder and then transfer it to my another server. Hope i am clear enough.
Note also that the "scp" programs current directory on the remote end will start in the home directory of the user, so you can use relative paths if you so wish.
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Hi all,
I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual moving. I use putty to connect to server. I couldnt find any help on this topic. Should i use... (3 Replies)
Dear All,
Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way.
I would request no samba client. (4 Replies)
hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command..
thanks very much, (3 Replies)
Hi,
Can anyone help me. I am a new user in unix. I want to transfer (ftp) a file from one unix server to another server. Kindly help me.
more details:
server 1
file_name a.lst
path: :/temp
server 2
path : /develp/temp
Thanks,
Raj, (2 Replies)
I am trying to copy a folder and all its contents from HP Unix box to RH linux, using the following.
rsync -avz -e "ssh" /users/www/webroot/docFiles/Division/Ctry ftpuser@10.4.xxx.yz:/data/webroot/development/contentfiles/webroot/docFiles/Division/Ctry/QAfiles
And it throws a consistent... (2 Replies)
hi all,
I have two server(Unix tru64 and windows 2003 server).
these server's live running now.
The win2003server doesn't have ftp server. Also Unix server doesn't have samba.
if both server's have ftp server that no problem.
How to transfer file from windows server to unix by every... (2 Replies)
Dear Friend,
I don't know much about unix.I am an VB6.0 Programmer.I need to move an text files as aaa.txt from unix server to windows "D: " driver using the FTP protocol.Is it possible to do this with help of unix shell script.If possible please give some sample codes.
Please answer as early... (1 Reply)