#!/bin/bash

sourcehost="ftp.blablubber.de"
sourceuser="myuser"
sourcepass="dunno"
sourcedir="bla/bla/logs"

targethost="hierhin.de"
targetuser="otheruser"
targetpass="hmmm"
targetdir="hier/hin/logs"

localdir="tmp/logs"


cd $localdir
ftp -n $sourcehost <<EODL
user $sourceuser "$sourcepass"
cd $sourcedir
mget *
bye
EODL


ftp -n $targethost <<EOUP
user $targetuser "$targetpass"
cd $targetdir
mput *
bye
EOUP

exit 0
