Security Basics mailing list archives

Re: Help writing a back up script


From: tsummers () infosecuritylab com
Date: 24 Oct 2005 08:24:02 -0000

Hi Juan,

Let's say you want to upload c:\backup.zip on your ftp server ftp.backup.com weekly. Your user name for the ftp 
connection is juan, password is juan1. First you need a script named backup.str that contains the following (you can 
simply create it using Notepad):

open ftp.backup.com
user
juan
juan1
delete backup.zip
put c:\backup.zip
bye
quit

After the script is ready, it can be executed by typing

ftp -s:backup.str

in the Windows command prompt or right into the Start -> Run box. If it does not work, your ftp server may have 
automatic login feature. In this case you need the following command:

fpt -n -s:backup.str

If you want to make Windows run this script weekly, just make a scheduled task using Control Panel - Scheduled Tasks - 
Add Scheduled Task.

Regards,
Terence
infosecuritylabs.com


Current thread: