Quote:
Originally Posted by jviola_simi
Thank You!!!! Much better than the .bat I was using. Now all i need to do is ftp the file to a server that is backed up on TSM. I'm having problem with the command line doing it unattended.
|
Try this ... here is some sample data:
Username: bob
Password: monkey
Hostname: server.local
Directory to upload file on ftp server: my/stuff/here
Local directory to fetch from: C:\BlackBerryDBBackup
files to send: BESMgmt*.bak
create a file called script.ftp with the following contents:
Code:
bob
monkey
binary
prompt n
cd my/stuff/here
lcd C:\BlackBerryDBBackup
mput BESMgmt*.bak
quit
Then create a file in the same directory as script.ftp called ftpit.cmd with the following contents:
Code:
ftp -s:script.ftp server.local
You could use the command xxcopy in your backup script to purge files older than a certain amount of days. Good luck; hope this helps.