ftp 211 B

1234567891011121314
  1. #!/bin/sh
  2. USERNAME=$1
  3. PASSWORD=$2
  4. SERVER=$3
  5. # Filename of backup file to be transfered
  6. FILE=$4
  7. # login to ftp server and transfer file
  8. ftp -n -i $SERVER <<EOF
  9. user $USERNAME $PASSWORD
  10. binary
  11. mput FILE
  12. quit
  13. EOF