How would you automate a daily backup of a directory and transfer it to an external storage location using Bash?