in reply to improve FTP script

Don't use Perl and FTP. Use NFS or rsync or cp --update to mirror directories over a network. Don't use cron. How do you know it will take 5 minutes? Networks have transient disruptions and congestion.