Creating a backup script

I'm trying to backup my home directory the the seagate drive.

lftp

open -u user,password -p [port] [server]
mirror -c -e -R /local_directory /remote_directory
exit

An alternative all on the command line

lftp -c "open -u <user>,<password> <host url>; mirror -c -e -R -L <path from> <path to>"

An alternative just using bash

#!/bin/bash
lftp -u username,password ftphost << EOF
mirror -Re --use-cache /home/ /backup/
mirror -Re --use-cache /etc/ /backup/
mirror -Re --use-cache /var/www/ /backup/
quit 0
EOF