Create a file called FTPBackup.bat that looks like this:
CODE
ftp -s:c:backupftpinfo.txt ftp.whatever.com
...or, if like me you want to back up your mysql database here too, make FTPBackup.bat look like this instead:
CODE
c:mysqlbinmysqldump -l --all-databases -a --user=root --password=mysqlrootpassword -r c:Backupmysqlbackup.sql
ftp -s:c:backupftpinfo.txt ftp.whatever.com
ftp -s:c:backupftpinfo.txt ftp.whatever.com
Now create a file called ftpinfo.txt (put it in the location referenced in FTPBackup.bat) :
CODE
ftpusername
ftppassword
CD /
binary
put c:backupmysqlmysqlbackup.sql
put c:backupdatabasehelmdb.cab
put c:backupdatabasehelmdb.dat
put c:backupmsbackupBackup.bkf
quit
ftppassword
CD /
binary
put c:backupmysqlmysqlbackup.sql
put c:backupdatabasehelmdb.cab
put c:backupdatabasehelmdb.dat
put c:backupmsbackupBackup.bkf
quit
CD / is changing to the directory that you want to upload to. add/remove/adjust the "put ..." lines to your liking... these are the files you're uploading. you can add "binary" or "ascii" in there before the different "put ..." lines if you need to.
Now test it out to make sure it's working and then set up FTPBackup.bat as a scheduled task.
Of course, now you've got the issue that your FTP password (and MySQL root password) are stored in plain text on the server. Make sure you've got the proper permissions on them (only Administrators, System).
Also, if your box gets hacked you've got the FTP password to the backup location in plain text. This could mean that the "hacker" could log in and delete your backups. There's a way to hide it from "hackers" so that they can't see your ftp login info, but I'd rather not get into the details of how I'm doing it on my box for obvious reasons. You'll just have to get creative about how you do it