something like that ? :
Code:
#!/bin/bash
#Backup Script Instance
echo "A system backup is currently being performed..."
mkdir /backup
cd /backup
#Tar files for this backup
rm fullback.tar.gz
tar cvf fullback.tar /home/user/
#Create the tar file
gzip -f fullback.tar
#FTP the file to the backup directory on the backup server
ftp -in <<EOF
open FTPhost
user your-user-name your-password
bin
hash
prompt
dele fullback.tar.gz
put fullback.tar.gz
bye
echo "The current backup was FTP'ed to the backup server. You may check the status..."
echo "Visit http://unix.com :) "