Perl script to download the files from FTP server
Hi,
I have a Perl script which downloads files from our FTP server to client. Now my requirement is as below, 1. we have a directory structure in ftp server and we have the same directory structure in our ftp client. 2.I want to download the file in such a way that the flies from the respective directory in server should go the same directory in ftp client. ex: server has /dir1/file1 client has /dir1/ it has to place the file from server dir1 to client dir1. is there any way to do it using Perl script. Thanks in advance. |
This doesn't answer your question, but I think rsync would be the better solution. It will do exactly what you are looking to do "out of the box"
|
Quote:
|
I think rsync will not help me as i don't have any access to FTP server, we have a ftp user login created in the FTP server. We have a script in place now which downloads the latest files to our local client, but i want a script to download the files in such a way that each and every file goes to the respective directory or sub directory assuming that we have same directory structure in bot FTP server and client.
requirement is some thing like below: server has a file xyz.tar in /xyz/directory and i want that file to downloaded and copied to our client in /xyz/directory. both our client and server has same directory structures. |
Quote:
|
All times are GMT -5. The time now is 08:30 AM. |