Here is the one I use :
#!/bin/bash
name=grondilu
sftp_address=grondilu@XXXXXXXX.XXX
email_address=grondilu@YYYYY.YYY
wallet=someobfuscatedfilename
private=$HOME/Private
bitcoind backupwallet $private/$wallet
cd $private
gpg -e -r $name $wallet
sftp $sftp_address <<< "put $wallet.gpg"
obexftp -b "XX:XX:XX:XX:XX:XX" -c /Data/backups -p "$wallet.gpg"
mutt $email_address -s backup -a $wallet.gpg
rm $wallet{,.gpg}
I use the Private virtual encrypted directory made with ecryptfs.
The obexftp line is to transfer to my N900 via bluetooth.