PoliMalaka
IS-IT--Management
We have a unix server (backup drive has failed) from which we need to be able to back up files.
We'd like to send these file via FTP to one of our W2K servers that has plenty of backup space.
My first idea was to set up a job in cron to run a script similar to this one that we run from another server cluster:
#!/bin/sh
ftp -n -v 10.1.1.50 <<EOT
user ftpuser ftppassword
cd Directory
put /export/home/data.txt data1.txt
put /export/home/data2.txt data3.txt
bye
EOT
Unfortunately, this script works in the opposite direction from what we would like to do.
This particular Unix server has a modem used by the support vendor. If we were to include the username and pass in this script, you can see the security issue raised. ()back door to our network and file servers via modem then FTP)
We'd like to instead create a scheduled job on the W2K server to run a batch file that will go out and mget the files from the unix box.
In this case, I am not worried about using plain text username and passwords in a btach file on our W2K server as only admins have access to this.
Here is what I have so far but am unable to get it working.
@echo off
ftp -n -v 10.1.1.90
user root rootpassword
mget *.z E:\DataFiles
bye
Thanks in advance.
We'd like to send these file via FTP to one of our W2K servers that has plenty of backup space.
My first idea was to set up a job in cron to run a script similar to this one that we run from another server cluster:
#!/bin/sh
ftp -n -v 10.1.1.50 <<EOT
user ftpuser ftppassword
cd Directory
put /export/home/data.txt data1.txt
put /export/home/data2.txt data3.txt
bye
EOT
Unfortunately, this script works in the opposite direction from what we would like to do.
This particular Unix server has a modem used by the support vendor. If we were to include the username and pass in this script, you can see the security issue raised. ()back door to our network and file servers via modem then FTP)
We'd like to instead create a scheduled job on the W2K server to run a batch file that will go out and mget the files from the unix box.
In this case, I am not worried about using plain text username and passwords in a btach file on our W2K server as only admins have access to this.
Here is what I have so far but am unable to get it working.
@echo off
ftp -n -v 10.1.1.90
user root rootpassword
mget *.z E:\DataFiles
bye
Thanks in advance.