FTP script download from linux to windows
Posted
by
user53864
on Server Fault
See other posts from Server Fault
or by user53864
Published on 2010-11-03T10:19:52Z
Indexed on
2011/01/03
8:55 UTC
Read the original article
Hit count: 274
I'm using following FTP script on windows xp to download zip files from ubuntu cloud servers. A zip file is created every day on ubutnu servers and I will download it to windows via this ftp script. I run this script everyday manually as I have to edit the last line(mget /usr/backup_02-11-2010.Zip) of the script to match today's date. I want to edit this script so that it will download only today's zip file at the scheduled time without needing to edit it everyday, when scheduled. It's clear that date is appended to the zip files and is in the format dd-mm-yyyy. Need help...
open server-ip-here
username-here
user-password-here
lcd C:\Backup\files
bin
hash
prompt
mget /usr/backup_02-11-2010.zip
© Server Fault or respective owner