Knight2A4
In the zone
Hello Everyone,
I would require some help in writing a script to Automatically Backup files some remote sever to local drive over ftp. O.K am a mech. And being trying to find a way to automate file transfer from my seed box to my local drive. By googling I reached to this article how to automatically backup your web server files with winscp over ftp but its been down hill from there on as my knowledge of programming is almost nil. And the author of the article did not mention where to insert the script or how it will be used. He provided link to winscp site. I have been banging my head for two days now trying to understand how open & get command works in a script to make winscp log in the remote server n download required files automatically. Finally decided that I require help from people who know scripting that brought me here. Now if you could help me out here. My objectives are 1. winscp should login to the ftp server with login: anonymous & password: (nil, no password) at a given time ex: 11.00 pm or at the start of the pc as shown in the article 2. should look into a pre-specified folder in the seed box for any new file generated 3. compares it to pre-specified folder on local storage 3. download any new file that it finds in the seed box 4. writes all these activity in a log file and places it on a specific location as shown in the article. Optionally if you can 5. after completion of task asks for shut down. If does not get any answer in a particular time interwell executes shut down.
Thanks in advance for any help & any advice towards the topic is welcome.
I would require some help in writing a script to Automatically Backup files some remote sever to local drive over ftp. O.K am a mech. And being trying to find a way to automate file transfer from my seed box to my local drive. By googling I reached to this article how to automatically backup your web server files with winscp over ftp but its been down hill from there on as my knowledge of programming is almost nil. And the author of the article did not mention where to insert the script or how it will be used. He provided link to winscp site. I have been banging my head for two days now trying to understand how open & get command works in a script to make winscp log in the remote server n download required files automatically. Finally decided that I require help from people who know scripting that brought me here. Now if you could help me out here. My objectives are 1. winscp should login to the ftp server with login: anonymous & password: (nil, no password) at a given time ex: 11.00 pm or at the start of the pc as shown in the article 2. should look into a pre-specified folder in the seed box for any new file generated 3. compares it to pre-specified folder on local storage 3. download any new file that it finds in the seed box 4. writes all these activity in a log file and places it on a specific location as shown in the article. Optionally if you can 5. after completion of task asks for shut down. If does not get any answer in a particular time interwell executes shut down.
Thanks in advance for any help & any advice towards the topic is welcome.
Last edited: