ftp ; the best practice

Hi All,

I have a question about FTPing the files/folders etc from a "source" UNIX/LINUX box to the "target" box. I know that you can use FTP, Secure FTP, may be some java package, there is on thing like "RSYNC" ....and others in the market.

But i wanted to know what is the greatest and best practice to achieve an "automated" ftp process.

"Automated" means, somebody who has very little experience with UNIX world, would log in to the source box, go to say /home/myid and just type ./ftptotarget.sh

....something to that extent. And underneath, there would be a process (my be an ANT script, java program, rsyc or etc) that would do it's work and 100% guranteed the files have been targeted with all permissions and etc.

I do not know if i have asked my question properly, but if you have any questions, i would explain better.

Thanks, sangita

[888 byte] By [Sangitava] at [2007-10-1 0:37:50]
# 1
I am not sure if I understand your question, but if you are just wanting to copy files to and from a windows box to a linux box, then you may want to use something like WinSCP. I use it all the time.orozcom
orozcoma at 2007-7-7 16:24:47 > top of Java-index,Security,Event Handling...
# 2

Thanks for your information. Actually, I wanted to "copy" files from UNIX source box to UNIX target box.

Let me be more specific now. We are using weblogic.Deployer wrapped in a ANT scripts. This is deploy .ear /.war files from source to target boxes. We have a common source box, we call it a staging area. All the developers in the world would put the .ear / .war application files to this staging box. Our group in US, would deploy the application to their respective target boxess. Now, some of the application also does have "other" files or folders that are not been packaged into an .ear/.war files, because either they are not java files or something else.

But, we still have to target these "extra" files from the staging to target boxes. Currently, we manually FTP it. But we wanted to give the complete "deployment" authority to people who have less unix experience. They can not do FTP. Moreover, we do not want use FTP too. What is the easiest and the best approach ?

Thanks, sangita

Sangitava at 2007-7-7 16:24:47 > top of Java-index,Security,Event Handling...
# 3
You could ZIP the .ear/.war files + others into a single "AnyApp.zip" file, then put the resulting .zip file in the staging area...
Franck_Lefevrea at 2007-7-7 16:24:47 > top of Java-index,Security,Event Handling...
# 4
What about scp?
BIJ001a at 2007-7-7 16:24:47 > top of Java-index,Security,Event Handling...
# 5
scp ...i will take a look...any other ideas ?
Sangitava at 2007-7-7 16:24:47 > top of Java-index,Security,Event Handling...
# 6
scp with key based auth is nice :) Otherwise maybe use a nfs mount or write a ftp class. http://www.newsforge.com/article.pl?sid=04/03/15/211214good luck,jd
mohadib_a at 2007-7-7 16:24:47 > top of Java-index,Security,Event Handling...