Need Batch script in windows to upload files to a particular ftp location -
i have several backup files in location, c:\backup_folder\...
need batch script (.bat
), files under c:\backup_folder\*.zip
moved particular ftp location (ftp.mysite.com
).
also, if file exists on ftp site, must overwritten new file... can show me script performs these backups?
the trick automated file xfer windows (for me @ least) has been using correct commandline upload tool. me, when i've wanted shell-scriptable tool, ends being rsync cygwin. since asked windows batch ftp (as opposed safer, more reliable solution, might want try using windows build of wput
since want overwrite file each time, use -u (re-upload) option. found wput supported of ftp options wanted, , should handle job. although absolutely agree desire re-upload entire file, can set few optimizations might find handy if you're uploading on slow link, using timestamp comparison decide if don't need upload (-n). option backup scripts may want remove source file after successful upload (-r option).
i feel it's wise point out ftp isn't reliable protocol i want in backup script ... desire re-upload file(s) one.
Comments
Post a Comment