#!/bin/sh

# copy the contents of file://source to ftp://remotehost/destination

remotehost=$1
account=$2
password=$3
sitepath=$4
source=$5
destination=$6

ftp -inv $remotehost 2>&1 << END
user $account $password
mkdir $sitepath
cd $sitepath
mkdir $destination
cd $destination
lcd $source
mput *
dir
close
bye
END